Leap seconds announced at library release time.
|Version on this page:||2017|
|LTS Haskell 20.24:||2017.1.0.1|
|Stackage Nightly 2023-06-04:||2017.1.0.1|
|Latest on Hackage:||2017.1.0.1|
Module documentation for 2017
This libraray provides a static
“containing” the leap seconds announced at library release time.
A new version of the library is released every time the International
Earth Rotation and Reference Systems Service (IERS) announces a new
leap second at http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat.
This module is intended to provide a quick-and-dirty leap second solution for one-off analyses concerned only with the past and present (i.e. up until the next as of yet unannounced leap second), or for applications which can afford to be recompiled against an updated library as often as every six months.
Data.Time.Clock.AnnouncedLeapSeconds to bring the leap
lst into scope. Here is a usage example:
import Data.Time import Data.Time.Clock.TAI import Data.Time.Clock.AnnouncedLeapSeconds -- | Convert from UTC to TAI. utcToTAITime' = utcToTAITime lst -- | Convert from TAI to UTC. taiToUTCTime' = taiToUTCTime lst -- | Add a length of time to a UTC time, respecting leap seconds -- (as opposed to Data.Time.Clock.addUTCTime). addUTCTime' :: DiffTime -> UTCTime -> UTCTime addUTCTime' dt = taiToUTCTime' . addAbsoluteTime dt . utcToTAITime'
- Fix documentation to reflect addition of 2015 leap second.
- Hide hypothetical leap seconds (prior to 1972-01-01).
- Add test suite to .cabal.
- Added 2015 leap second (2015-06-30T23:59:60Z).
- Added 2012 leap second (2012-06-30T23:59:60Z).
Initial release including all leap seconds up to 2009-01-01.