Skip to content

ISO-8601 strings with no/missing units don't return an error #35

@Bhupesh-V

Description

@Bhupesh-V

At the moment, the Parse method successfully parses the following invalid date strings. Returns a zero Duration.

  1. P6: No unit after prefix P.
  2. P7Y4: No unit after valid sub-prefix.

Would you like a fix for this? Thoughts?

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