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

Safe HaskellSafe-Infered




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.

approxidateUTC :: String -> Maybe UTCTimeSource

The same as approxidate, but returns a UTCTime instead of a raw timestamp.