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

Safe HaskellNone

Data.Time.Git

Synopsis

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