Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Some POSIX time functions.
- type SecondsPOSIX = Int
- toSecondsPOSIX :: String -> SecondsPOSIX
- fromSecondsPOSIX :: TimeZone -> SecondsPOSIX -> String
- getSecondsPOSIX :: IO SecondsPOSIX
Documentation
type SecondsPOSIX = Int Source #
POSIX seconds.
toSecondsPOSIX :: String -> SecondsPOSIX Source #
Convert an ISO 8601 string to POSIX seconds.
fromSecondsPOSIX :: TimeZone -> SecondsPOSIX -> String Source #
Convert POSIX seconds to an ISO 8601 string.
getSecondsPOSIX :: IO SecondsPOSIX Source #
Get the current time.