Safe Haskell | None |
---|
- approxidate :: String -> Maybe Integer
- io_approxidate :: String -> IO (Maybe Integer)
- posixToUTC :: Integer -> UTCTime
Documentation
approxidate :: String -> Maybe IntegerSource
Parse a date/time string and return Just a Unix timestamp. Return Nothing if the string could not be interpreted. If no timezone is in the string, the local timezone is used. This is not in IO and you cannot safely ask it to parse strings like "now" and "yesterday".
io_approxidate :: String -> IO (Maybe Integer)Source
Parse a date/time string and return Just a Unix timestamp. Return Nothing if the string could not be interpreted. If no timezone is in the string, the local timezone is used. This is in IO so that you can safely ask it to parse strings like "now" and "yesterday".
posixToUTC :: Integer -> UTCTimeSource
Convert a Unix timestamp to a UTCTime