[Haskell] ANN: leapseconds-announced-2012
bjorn.buckwalter at gmail.com
Sun Jan 8 08:12:56 CET 2012
The International Earth Rotation and Reference Systems Service (IERS)
recently announced that a positive leap second will be introduced
at the end of June 2012. Consequently I have updated the
The original announcement of leapseconds-announced can be found below.
---------- 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
I'm pleased to announce the upload of the leapseconds-announced
package to Hackage. leapseconds-announced contains a single module
and a single function implementing the
Data.Time.Clock.TAI.LeapSecondTable interface (type).
The documentation 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
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 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.
More information about the Haskell