]> Cypherpunks.ru repositories - gotai64n.git/blobdiff - tai64n.go
Unify copyright comment format
[gotai64n.git] / tai64n.go
index d3071a37f461625757e450d7be76c737a52fc227..3802bb85786994e3645921c7c252bd5cc2dbd0e3 100644 (file)
--- 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 <stargrave@stargrave.org>
-
-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 <http://www.gnu.org/licenses/>.
-*/
+// go.cypherpunks.ru/tai64n -- Pure Go TAI64/TAI64N implementation
+// Copyright (C) 2020-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// 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 <http://www.gnu.org/licenses/>.
 
 // 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