Skip to content

TimeDelta always returning a PT in seconds #1576

@MiPnamic

Description

@MiPnamic

As per the mentioned iso8601 - Duration a Duration of 1 day can be expressed as:

  • P1D
  • PT24H
  • PT1440M
  • PT86400S

The current TimeDelta Display implementation always returns the longer format in seconds, which is a practical solution. However, it can be challenging to read for more complex PT values.

For example, a valid 10-day, 2-hour, and 30-minute TimeDelta gets translated to PT873000S instead of P10DT2H30M.

Would you consider adding what has been referred to as "nominal" components in future releases?

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