From: Sergey Matveev Date: Thu, 3 Oct 2024 09:24:49 +0000 (+0300) Subject: There are no problems with dates before 1970 X-Git-Tag: v3.1.0~1 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f4ec2a675207b86f46c188c9ca5e35fb33ec30c7;p=gotai64n.git There are no problems with dates before 1970 --- diff --git a/tai64n.go b/tai64n.go index 37e9f79..4760142 100644 --- 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) }