Skip to content

Add to_iso8601/1 for duration #7

Open
@kipcole9

Description

@kipcole9

ISO8601 defines a duration format. Add to_iso8601 to convert Cldr.Calendar.Duration.t to this format. And from_iso8601/1 to do the reverse.

For now a Cldr.Calendar.Duration/1 does not support:

  1. Week durations
  2. Negative durations
  3. Durations where the date/time components are unordered

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions