canteven-parsedate-1.0.1.2: Date / time parsing utilities that try to guess the date / time format.

Safe HaskellSafe
LanguageHaskell2010

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.

Synopsis

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.