Skip to content

Cannot handle fractions of a second (and potentially other fractions) #13

@TravisBumgarner

Description

@TravisBumgarner

If I get some free time I'll take a look at it myself.

should output 1h 2m with input PT3723.14159S:

    Error: Unexpected duration format. Refer to ISO 8601.
     at new Duration (node_modules/durationjs/js/duration.js:49:11)

Per Wikipedia (https://en.wikipedia.org/wiki/ISO_8601)

The smallest value used may also have a decimal fraction, as in “P0.5Y” to indicate half a year. This decimal fraction may be specified with either a comma or a full stop, as in “P0,5Y” or “P0.5Y”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions