Parsing of ISO 8601 dates, originally from aeson
|LTS Haskell 20.16:||18.104.22.168|
|Stackage Nightly 2023-04-02:||22.214.171.124|
|Latest on Hackage:||126.96.36.199|
Module documentation for 188.8.131.52
Parsing of ISO 8601 dates.
This package is used to parse dates in aeson. It is split into a separate package to be shared by other projects that want to parse dates like aeson does.
For now, this project is located in the aeson repository and aeson itself uses the source of this package without pulling in the package as a dependency.
Since aeson depends on this package we want to be very careful about changing the format.
There may be breaking changes if we find that the format is incorrectly too lenient. We consider widening of the allowed input a non-breaking addition since all previously valid input will still parse correctly.
For the latest version of this document, please see https://github.com/bos/aeson/blob/master/attoparsec-iso8601/changelog.md.
- Change parsers of types with year (
UTCTime) to require years with at least 4 digits.
- Code (re)organization.
- Avoid wildcard imports
month :: Parser Monthand
quarter :: Parser Quarter
- Fixes handling of
UTCTimewrt. leap seconds , thanks to Adam Schønemann