The nominal length of a POSIX day: 86400 SI seconds.
- Packagethyme-0.4.1
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePOSIX.hsc
The nominal (ignoring leap seconds) time difference since midnight
1970-01-01, the Unix epoch. Equvialent to a normalised
struct timeval.
Control.Lens.Iso between UTCTime and POSIXTime.
> getPOSIXTime
1459515013.527711s
> review posixTime <$> getPOSIXTime
2016-01-01 12:50:45.588729 UTC
Return the current system POSIX time via
gettimeofday,
or getSystemTimeAsFileTime on Windows.
See also getCurrentTime, getZonedTime.
Compatibility
2 declarationsConstruct a UTCTime from a POSIXTime.
posixSecondsToUTCTime = review posixTime
posixSecondsToUTCTime t ≡ posixTime # t
Convert a UTCTime to a POSIXTime.
utcTimeToPOSIXSeconds = view posixTime