Skip to content

Add support for decimal fraction on smallest duration component #1

@thomaslevesque

Description

@thomaslevesque

According to Wikipedia:

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".

This is not currently supported by this library, which expects only integer component values.

Supporting this would be a breaking change, since the type of the component values is uint and would need to be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions