Safe Haskell | None |
---|---|
Language | Haskell98 |
- approxidate :: String -> Maybe UTCTime
- approxidateIO :: Unexceptional m => String -> m (Maybe UTCTime)
Documentation
approxidate :: String -> Maybe UTCTime 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.
approxidateIO :: Unexceptional m => String -> m (Maybe UTCTime) 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 ask it to parse strings like "now" and "yesterday".