josedonizetti / ruby-duration

Immutable type that represents some amount of time with accuracy in seconds.
http://bit.ly/ruby-duration
MIT License
124 stars 23 forks source link

Add ability to parse iso8601 durations. #13

Closed joevandyk closed 11 years ago

joevandyk commented 11 years ago

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:

select interval '1w';
P7D

In order to better operate with those libraries, ruby-duration no longer includes the week in the iso8601 format.

peleteiro commented 11 years ago

Thanks