Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Time.Clock.TAI
Contents
Description
TAI and leap-second maps for converting to UTC: most people won't need this module.
- data AbsoluteTime
- taiEpoch :: AbsoluteTime
- addAbsoluteTime :: DiffTime -> AbsoluteTime -> AbsoluteTime
- diffAbsoluteTime :: AbsoluteTime -> AbsoluteTime -> DiffTime
- taiNominalDayStart :: Day -> AbsoluteTime
- type LeapSecondMap = Day -> Maybe Int
- utcDayLength :: LeapSecondMap -> Day -> Maybe DiffTime
- utcToTAITime :: LeapSecondMap -> UTCTime -> Maybe AbsoluteTime
- taiToUTCTime :: LeapSecondMap -> AbsoluteTime -> Maybe UTCTime
- taiClock :: Maybe (DiffTime, IO AbsoluteTime)
Documentation
The epoch of TAI, which is 1858-11-17 00:00:00 TAI.
addAbsoluteTime :: DiffTime -> AbsoluteTime -> AbsoluteTime #
addAbsoluteTime a b = a + b
diffAbsoluteTime :: AbsoluteTime -> AbsoluteTime -> DiffTime #
diffAbsoluteTime a b = a - b
taiNominalDayStart :: Day -> AbsoluteTime #
type LeapSecondMap = Day -> Maybe Int #
TAI - UTC during this day. No table is provided, as any program compiled with it would become out of date in six months.
utcDayLength :: LeapSecondMap -> Day -> Maybe DiffTime #
utcToTAITime :: LeapSecondMap -> UTCTime -> Maybe AbsoluteTime #
taiToUTCTime :: LeapSecondMap -> AbsoluteTime -> Maybe UTCTime #
taiClock :: Maybe (DiffTime, IO AbsoluteTime) #
TAI clock, if it exists. Note that it is unlikely to be set correctly, without due care and attention.