diff options
Diffstat (limited to 'tai64n/tai64n.go')
-rw-r--r-- | tai64n/tai64n.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tai64n/tai64n.go b/tai64n/tai64n.go index 146126f..069d830 100644 --- a/tai64n/tai64n.go +++ b/tai64n/tai64n.go @@ -20,7 +20,7 @@ func Now() Timestamp { var tai64n Timestamp now := time.Now() secs := base + uint64(now.Unix()) - nano := uint32(now.UnixNano()) + nano := uint32(now.Nanosecond()) binary.BigEndian.PutUint64(tai64n[:], secs) binary.BigEndian.PutUint32(tai64n[8:], nano) return tai64n |