Bjorn Buckwalter | 8 Jan 08:12 2012
Picon

ANN: leapseconds-announced-2012

Dear all,

The International Earth Rotation and Reference Systems Service (IERS)
recently announced[1] that a positive leap second will be introduced
at the end of June 2012. Consequently I have updated the
leapseconds-announced library[2].

The original announcement of leapseconds-announced can be found below.

Best regards,
Bjorn Buckwalter

[1] http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat
[2] http://hackage.haskell.org/package/leapseconds-announced

---------- Forwarded message ----------
From: Bjorn Buckwalter <bjorn.buckwalter <at> gmail.com>
Date: Sat, Jan 17, 2009 at 13:23
Subject: ANN: leapseconds-announced-2009
To: Haskell <at> haskell.org, haskell-cafe <at> haskell.org

Dear all,

I'm pleased to announce the upload of the leapseconds-announced
package[1] to Hackage. leapseconds-announced contains a single module
and a single function implementing the
Data.Time.Clock.TAI.LeapSecondTable interface (type).

The documentation[2] for Data.Time.Clock.TAI.LeapSecondTable says "No
table is provided, as any program compiled with it would become out of
date in six months" and with that I have no objections. However, I
frequently find myself needing a LeapSecondTable for a quick-and-dirty
one-off analysis or simulation of the present or past. In these cases
I've lazily used "(const 33)" (or more recently: "(const 34)") as my
LeapSecondTable.

leapseconds-announced is a pragmatic, if imperfect, improvement over
my past practices. It provides a LeapSecondTable with all leap seconds
announced to date (hence the name). Once the IERS announces[3] another
leap second the package will need an update and all code using it a
recompile. While this precludes its use in long-running production
applications it is eminently adequate for my one-off uses or for
applications that can afford to recompile infrequently.

While, in the words of the Data.Time.Clock.TAI documentation, "most
people won't need this module" I hope it can be of utility to someone.

Thanks,
Bjorn Buckwalter

[1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/leapseconds-announced
[2] http://www.haskell.org/ghc/docs/latest/html/libraries/time/Data-Time-Clock-TAI.html
[3] http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat

Gmane