]> Cypherpunks repositories - gotai64n.git/commitdiff
There are no problems with dates before 1970
authorSergey Matveev <stargrave@stargrave.org>
Thu, 3 Oct 2024 09:24:49 +0000 (12:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Oct 2024 09:24:49 +0000 (12:24 +0300)
tai64n.go

index 37e9f79fa50d58f088ba971f56d1ab7202a37a53..4760142b6c90ca8742a2b273800e0ac4a15d877d 100644 (file)
--- a/tai64n.go
+++ b/tai64n.go
@@ -67,9 +67,6 @@ func ToTime(tai []byte) time.Time {
        default:
                panic("invalid tai size")
        }
-       if secs < 0 {
-               panic("dates < 1970-01-01 are not supported")
-       }
        return time.Unix(secs, nano)
 }