Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
The contents of this module is liable to change, or disappear entirely. Please let me know if you depend on anything here.
Synopsis
- class FormatTime t where
- class ParseTime t where
Documentation
class FormatTime t where Source #
Instances
class ParseTime t where Source #
The class of types which can be parsed given a UNIX-style time format string.
substituteTimeSpecifier :: proxy t -> TimeLocale -> Char -> Maybe String Source #
parseTimeSpecifier :: proxy t -> TimeLocale -> Maybe ParseNumericPadding -> Char -> ReadP String Source #
Get the string corresponding to the given format specifier.
:: TimeLocale | The time locale. |
-> [(Char, String)] | Pairs of format characters and the corresponding part of the input. |
-> Maybe t |
Builds a time value from a parsed input string.
If the input does not include all the information needed to
construct a complete value, any missing parts should be taken
from 1970-01-01 00:00:00 +0000 (which was a Thursday).
In the absence of %C
or %Y
, century is 1969 - 2068.