Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Canteven.ParseDate
Description
This module wraps Format
and provides a handy way to parse a date
string who's format is unknown, but which may be one of several "supported"
date formats.
- parseDate :: ParseTime t => String -> Maybe t
- supportedDateFormats :: [String]
- iso8601UtcDateFormats :: [String]
- twitterDateFormat :: String
Documentation
parseDate :: ParseTime t => String -> Maybe t Source
Parses a date string. Returns Nothing
if the string cannot be parsed. The
specific set of date formats known is defined below by
supportedDateFormats
supportedDateFormats :: [String] Source
The list of supported date formats. currently:
rfc822DateFormat:iso8601UtcDateFormats
See also rfc822DateFormat
.