josedonizetti / ruby-duration

Immutable type that represents some amount of time with accuracy in seconds.

Home Page:http://bit.ly/ruby-duration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Support duration creation from iso 8601 strings

joevandyk opened this issue · comments

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

Pull request #7 submitted