Data.Time.Clock.TAI
Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contents
Description
TAI and leap-second maps for converting to UTC: most people won't need this module.
data AbsoluteTime Source
AbsoluteTime is TAI, time as measured by a clock.
Instances
taiEpoch :: AbsoluteTime Source
The epoch of TAI, which is 1858-11-17 00:00:00 TAI.
addAbsoluteTime :: DiffTime -> AbsoluteTime -> AbsoluteTime Source
addAbsoluteTime a b = a + b
diffAbsoluteTime :: AbsoluteTime -> AbsoluteTime -> DiffTime Source
diffAbsoluteTime a b = a - b
taiNominalDayStart :: Day -> AbsoluteTime Source
type LeapSecondMap = Day -> Maybe Int Source
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 Source
utcToTAITime :: LeapSecondMap -> UTCTime -> Maybe AbsoluteTime Source
taiToUTCTime :: LeapSecondMap -> AbsoluteTime -> Maybe UTCTime Source
taiClock :: Maybe (DiffTime, IO AbsoluteTime) Source
TAI clock, if it exists. Note that it is unlikely to be set correctly, without due care and attention.
Orphan instances
Show AbsoluteTime | |
MethodsshowsPrec :: Int -> AbsoluteTime -> ShowS Source show :: AbsoluteTime -> String Source showList :: [AbsoluteTime] -> ShowS Source |
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/time-1.9.3/Data-Time-Clock-TAI.html