Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Check List
According to the Wikipedia entry for the ISO8601 format (I do not have access to the official specification):
A
--
can be used as an alternative to/
to separate the begin and end components of an interval. I would like to use the--
separator for my application where the/
would cause issues, specifically in a URL and in a filename as mentioned in the Wikipedia article.I saw that this excellent package is able to parse ISO8601 intervals, but only if the
/
is used. I was hoping to provide this PR to parse an interval if either the/
or the--
is present.I have added additional tests and documentation that also include parsing intervals without colons,
:
, or dashes,-
, because it wasn't clear to me from the tests or documentation if the "compact" ISO8601 datetime strings could be used with intervals. I would like to use the "compact" strings for similar reasons of using them for filenames and colons, specifically, are special characters on some systems.