Skip to content

core.time.Duration does not support ISO8601 representation #22491

@Herringway

Description

@Herringway

Much like SysTime in Phobos, Duration should support fromISOString and toISOString methods to convert from/to ISO8601 representations. These are useful for serialization and other forms of interoperability.

One concern is that years and months are too ambiguous in this context, but it should be acceptable to reject or ignore them. There is precedence for this in other languages's standard libraries like Java's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions