Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module exposes functions related with date and time which are used in other parts of the library.
Synopsis
- parseTimeGuess :: ParseTime t => Text -> Maybe t
Documentation
parseTimeGuess :: ParseTime t => Text -> Maybe t Source #
Parses a date guessing from a list of accepted formats. Right now these are: - iso8601: 2018-01-01 - iso8601 with time: 2018-01-01T12:35 - iso8601 with time and timezone: 2018-01-01T12:35+0100 - iso8601 with fractions of seconds: 2018-01-01T12:35.001000 - iso8601 with fractions of seconds and timezone: 2018-01-01T12:35.001000+0100 - rfc822: Mon, 01 Jan 2018 12:35:00 +0100 - epoch: 1514810100