diff options
Diffstat (limited to '')
-rw-r--r-- | internal/tai64n/tai64n.go (renamed from tai64n.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tai64n.go b/internal/tai64n/tai64n.go index 8c5ebe0..da5257c 100644 --- a/tai64n.go +++ b/internal/tai64n/tai64n.go @@ -1,4 +1,4 @@ -package main +package tai64n import ( "bytes" @@ -11,7 +11,7 @@ const base = uint64(4611686018427387914) type Timestamp [TimestampSize]byte -func TimestampNow() Timestamp { +func Now() Timestamp { var tai64n Timestamp now := time.Now() secs := base + uint64(now.Unix()) |