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

Safe HaskellNone
LanguageHaskell98

Data.Time.Git

Synopsis

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".