Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `ActiveSupport::Duration` supports ISO8601 formatting and parsing. | Arnau Siches, Andrey Novikov | 2016-04-18 | 2 | -0/+173 |
```ruby ActiveSupport::Duration.parse('P3Y6M4DT12H30M5S') (3.years + 3.days).iso8601 ``` Inspired by Arnau Siches' [ISO8601 gem](https://github.com/arnau/ISO8601/) and rewritten by Andrey Novikov with suggestions from Andrew White. Test data from the ISO8601 gem redistributed under MIT license. (Will be used to support the PostgreSQL interval data type.) |