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