git-date-0.2.2: Bindings to the date parsing from Git.

Safe HaskellNone
LanguageHaskell98

Data.Time.Git

Synopsis

Documentation

approxidate :: String -> 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 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 -> UTCTime Source

Convert a Unix timestamp to a UTCTime