Get the system time, epoch start of 1970 UTC, leap-seconds ignored.
getSystemTime is typically much faster than getCurrentTime.
Moduletime-compat-1.9.9
Data.Time.Clock.System.Compat
- 1 type
- 6 values
- Packagetime-compat-1.9.9
- Exports7
- LicenceBSD-3-Clause
- SourceSystemTime.hs
The day of the epoch of SystemTime, 1970-01-01
Convert SystemTime to AbsoluteTime, matching zero SystemTime to midnight of systemEpochDay TAI.
Convert SystemTime to UTCTime, matching zero SystemTime to midnight of systemEpochDay UTC.
Map leap-second values to the start of the following second. The resulting systemNanoseconds will always be in the range 0 to 1E9-1.
Convert UTCTime to SystemTime, matching zero SystemTime to midnight of systemEpochDay UTC.
SystemTime is time returned by system clock functions. Its semantics depends on the clock function, but the epoch is typically the beginning of 1970. Note that systemNanoseconds of 1E9 to 2E9-1 can be used to represent leap seconds.
Constructors
Instances8Eq, Data, Ord, Show, Generic, NFData, …
Eq SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeData SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeOrd SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeShow SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeGeneric SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeNFData SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimeLift SystemTimeDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTimetype Rep SystemTime = D1 ('MetaDataDefined in time-1.16.0.1 · Data.Time.Clock.Internal.SystemTime"SystemTime"
"Data.Time.Clock.Internal.SystemTime"
"time-1.16.0.1-ac1b"
'False) (C1 ('MetaCons"MkSystemTime"
'PrefixI 'True) (S1 ('MetaSel ('Just"systemSeconds"
) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int64) :*: S1 ('MetaSel ('Just"systemNanoseconds"
) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Word32)))