Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for ISO-8601 Durations #3265

Merged
merged 3 commits into from
Apr 17, 2024

Commits on Apr 17, 2024

  1. feat: Add support for ISO-8601 Durations

    https://en.wikipedia.org/wiki/ISO_8601#Durations
    As an extension of the ISO standard, the format is also used in RFC 3339, XML Schema Part 2, TC39's Temporal proposal, and a format for JSON Schema strings since draft 2019-09.
    mastermatt authored and colinhacks committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    d8e4799 View commit details
    Browse the repository at this point in the history
  2. Update Duration to better support ISO 8601-2

    Use a better regex to support negatives and decimal fractions to the smallest value.
    Add a lot of valid and invalid inputs to the test.
    mastermatt authored and colinhacks committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    c7811f2 View commit details
    Browse the repository at this point in the history
  3. Fix test

    colinhacks committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    4d81e8c View commit details
    Browse the repository at this point in the history