Safe Haskell | None |
---|---|
Language | Haskell2010 |
POSIX Milliseconds wrapper
Synopsis
- data POSIXMillis
- type POSIXTime = NominalDiffTime
- millisecondsToPosix :: Integer -> POSIXTime
- posixToMilliseconds :: POSIXTime -> Integer
- seconds :: POSIXTime -> POSIXMillis
Documentation
data POSIXMillis Source #
Instances
type POSIXTime = NominalDiffTime #
POSIX time is the nominal time since 1970-01-01 00:00 UTC
To convert from a CTime
or System.Posix.EpochTime
, use realToFrac
.
seconds :: POSIXTime -> POSIXMillis Source #