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

Feature Request: Support duration creation from iso 8601 strings #5

Closed joevandyk closed 12 years ago

joevandyk commented 12 years ago
asset_equal 60, Duration.new("PT1M').to_i

This would let me support loading interval data types from postgresql into a Duration object. http://www.postgresql.org/docs/9.1/static/datatype-datetime.html

joevandyk commented 12 years ago

Pull request https://github.com/peleteiro/ruby-duration/pull/7 submitted