tai64n.go | 6 ++++-- diff --git a/tai64n.go b/tai64n.go index 3a119f5fa89ea9f435c6f05eb70f7811665f5d13d990d3d64b08e405d8a713d5..7bc18077ac546f5ae751affe44ecced5d657e4328696377faf4db5d2eeae3200 100644 --- a/tai64n.go +++ b/tai64n.go @@ -42,8 +42,10 @@ LocalFmt = "2006-01-02 15:04:05.000000000" Base = 0x4000000000000000 + Leapsecs1972 ) -type TAI64 [TAI64Size]byte -type TAI64N [TAI64NSize]byte +type ( + TAI64 [TAI64Size]byte + TAI64N [TAI64NSize]byte +) func (dst *TAI64) FromTime(src time.Time) { binary.BigEndian.PutUint64(dst[:], uint64(Base)+uint64(src.Unix()))