-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Small library for parsing different dates formats. -- -- This package allows to parse many different formats of dates. Both -- absolute and relative dates are supported. Supported date formats are: -- --
-- -- 4-digits years may be abbreviated (such as 12 for 2012). Both 12-hour -- and 24-hour time formats are supported. @package dates @version 0.1.1.0 -- | Operations with dates module Data.Dates -- | Date / Time data DateTime DateTime :: Int -> Int -> Int -> Int -> Int -> Int -> DateTime year :: DateTime -> Int month :: DateTime -> Int day :: DateTime -> Int hour :: DateTime -> Int minute :: DateTime -> Int second :: DateTime -> Int -- | Only time, without date data Time Time :: Int -> Int -> Int -> Time tHour :: Time -> Int tMinute :: Time -> Int tSecond :: Time -> Int -- | Parse date/time parseDate :: DateTime -> String -> Either ParseError DateTime -- | Parsec parser for DateTime. pDate :: DateTime -> Parsec String st DateTime -- | Get current date and time. getCurrentDateTime :: IO DateTime instance Typeable DateTime instance Typeable Time instance Eq DateTime instance Ord DateTime instance Data DateTime instance Eq Time instance Ord Time instance Show Time instance Data Time instance Eq DateIntervalType instance Show DateIntervalType instance Read DateIntervalType instance Eq DateInterval instance Show DateInterval instance Show DateTime