Closed joevandyk closed 11 years ago
Actually according to wikipedia http://en.wikipedia.org/wiki/ISO_8601#Durations "Durations are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S
or P[n]W
".
Note that there's no [n]W
in the longer version. So I think that should be removed from the iso8601 output.
I'm interested in built-in ability to parse ISO8601 durations. Does committer plan to accept this pull request?
Hi,
Sorry for the (really) long delay. Do you mind rebasing against current master?
Why'd this get closed?
New pull request here: #13
I'm not an ISO8601 expert, but it appears many implementations ignore weeks in the format string. The Ruby iso8601 library does, and postgresql does as well:
In order to better operate with those libraries, this library no longer includes the week in the iso8601 format.