From e0708e927420ff06063828ab7fb256d81c91a772 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 22 Nov 2024 18:01:18 +0300 Subject: [PATCH] Remove LocalFmt from base library --- cmd/tai64nlocal/main.go | 4 +++- tai.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tai64nlocal/main.go b/cmd/tai64nlocal/main.go index 9633724..9590f65 100644 --- a/cmd/tai64nlocal/main.go +++ b/cmd/tai64nlocal/main.go @@ -27,6 +27,8 @@ import ( "go.cypherpunks.su/tai64n/v4" ) +const LocalFmt = "2006-01-02 15:04:05.000000000" + func main() { log.SetFlags(0) flag.Usage = func() { @@ -77,6 +79,6 @@ func main() { if *leapsecs { t, _ = tai64n.Leapsecs.Sub(t) } - os.Stdout.WriteString(t.Format(tai64n.LocalFmt) + s[sep:] + "\n") + os.Stdout.WriteString(t.Format(LocalFmt) + s[sep:] + "\n") } } diff --git a/tai.go b/tai.go index 54142a7..52b9d73 100644 --- a/tai.go +++ b/tai.go @@ -32,7 +32,6 @@ const ( TAI64Size = 8 TAI64NSize = TAI64Size + 4 TAI64NASize = TAI64NSize + 4 - LocalFmt = "2006-01-02 15:04:05.000000000" Base = 0x4000000000000000 ) -- 2.48.1