-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Interpretation of leap second files.
@package leapseconds
@version 1.0
-- | Interpretation of leap second files.
module Data.Time.Clock.LeapSeconds
-- | TAI - UTC during this day. No table is provided, as any program
-- compiled with it would become out of date in six months.
type LeapSecondMap = Day -> Maybe Int
-- | A list of leap-second transitions, etc.
data LeapSecondList
MkLeapSecondList :: Day -> Day -> [(Day, Int)] -> LeapSecondList
[lslVersion] :: LeapSecondList -> Day
[lslExpiration] :: LeapSecondList -> Day
[lslTransitions] :: LeapSecondList -> [(Day, Int)]
-- | Parse the text of a NIST leap-second file. This file can be found at
-- ftp://time.nist.gov/pub/leap-seconds.list, and on UNIX systems,
-- at /usr/share/zoneinfo/leap-seconds.list.
parseNISTLeapSecondList :: String -> Maybe LeapSecondList
-- | Obtain a map that can be used to convert between TAI and UTC (see
-- Data.Time.Clock.TAI)
leapSecondListToMap :: LeapSecondList -> LeapSecondMap
instance GHC.Classes.Eq Data.Time.Clock.LeapSeconds.LeapSecondList