X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=tai64n.go;h=3802bb85786994e3645921c7c252bd5cc2dbd0e3;hb=HEAD;hp=d3071a37f461625757e450d7be76c737a52fc227;hpb=1212e4f1f980bead7213aaf8fe029395d2ecae13;p=gotai64n.git diff --git a/tai64n.go b/tai64n.go index d3071a3..3802bb8 100644 --- a/tai64n.go +++ b/tai64n.go @@ -1,28 +1,26 @@ -/* -go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation -Copyright (C) 2020-2022 Sergey Matveev - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation +// Copyright (C) 2020-2024 Sergey Matveev +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . // TAI64/TAI64N (http://cr.yp.to/libtai/tai64.html) dealing library. // You can convert time to TAI64/TAI64N and vice versa with it. // -// tai := new(tai64n.TAI64N) -// tai.FromTime(time.Now()) -// printable := tai64n.Encode(tai[:]) -// decoded, err := tai64n.Decode(printable) -// tai64n.ToTime(tai[:]) == decoded +// tai := new(tai64n.TAI64N) +// tai.FromTime(time.Now()) +// printable := tai64n.Encode(tai[:]) +// decoded, err := tai64n.Decode(printable) +// tai64n.ToTime(tai[:]) == decoded // // By default TAI64 timestamps contain initial 1972-01-01 10-seconds // TAI<->UTC difference. If you need honest TAI representation, then you