-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Bindings to the date parsing from Git. -- -- This library implements a simple, pure binding onto the date parsing -- code from git. Why? Because it was the only reasonable implementation -- of a generic date parser I could find. @package git-date @version 0.2 module Data.Time.Git -- | 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". approxidate :: String -> Maybe Integer -- | 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". io_approxidate :: String -> IO (Maybe Integer) -- | Convert a Unix timestamp to a UTCTime posixToUTC :: Integer -> UTCTime