X-Git-Url: http://www.git.cypherpunks.ru/?p=gotai64n.git;a=blobdiff_plain;f=tai64n.go;h=50a4e559314e13f4a521991b33bb909c127e69fe;hp=8af8ab3a349899cddb698e132dfbec7d91f8f4b2;hb=HEAD;hpb=9978840e570dfe3a23e2db36d64237febceaebcf diff --git a/tai64n.go b/tai64n.go index 8af8ab3..3802bb8 100644 --- a/tai64n.go +++ b/tai64n.go @@ -1,28 +1,26 @@ -/* -go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation -Copyright (C) 2020-2021 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