Re: http://cr.yp.to/libtai.html out of date?

"Andy Bradford" <[email protected]> 6 Jan 2017 19:36:33 -0700
Newsgroups gmane.comp.lib.libtai
Message-ID <[email protected]>
Thus said Tim Makarios on Fri, 06 Jan 2017 12:32:35 +1300:

> I came here via http://cr.yp.to/libtai.html, but I'm wondering if this
> is still the best reference for libtai.

While it's  the only one *I*  know about, it's  hard to say if  it's the
best.

> That page has  been updated since then, to mention  the leap second on
> 2015-06-30, but not the leap second on 2016-12-31.

Thanks for the warning. I've updated my leapsecs.dat.

> Also, the  "latest published  libtai package"  according to  that page
> includes  a leapsecs.dat  file  that includes  no  leap seconds  after
> 1999-12-31.

That's because there have been no code changes. You can update your own.
Here's a diff:

--- libtai-0.60/leapsecs.txt    Tue Oct 13 10:52:20 1998
+++ ../libtai-0.60/leapsecs.txt Fri Jan  6 19:29:01 2017
@@ -35,3 +35,8 @@
 +1995-12-31
 +1997-06-30
 +1998-12-31
++2005-12-31
++2008-12-31
++2012-06-30
++2015-06-30
++2016-12-31

After updating your leapsecs.txt you can build a new leapsecs.dat:

leapsecs < leapsecs.txt > leapsecs.dat

Andy
-- 
TAI64 timestamp: 4000000058705456