Skip to content

Add ISO-8601 style Duration parsing #7030

@sffc

Description

@sffc

It would be convenient for users and for writing unit tests if we could parse ISO-8601 duration strings into DateDuration.

Examples:

  • P1D => { days: 1 }
  • P2M1D => { months: 2, days: 1 }
  • P77Y => { years: 77 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions