iso8601-basic ============= A very basic implementation of the ISO8601 spec ```ruby gem 'iso8601-basic', require 'iso8601' ``` ## Joining date/time parts: ```ruby date = ISO8601Basic::Date.new '2010-01-01' # => # time = ISO8601Basic::Time.new '10:30' # => # date + time # => # ``` ## Working with durations: When working with times: ```ruby duration = ISO8601Basic::Duration.new 'PT1H' # => # time = ISO8601Basic::Time.new '10:30' # => # time + duration # => # ``` And with dates: ```ruby duration = ISO8601Basic::Duration.new 'P1D' # => # date = ISO8601Basic::Date.new '2010-01-01' # => # date + duration # => # ``` All together now: ```ruby duration = ISO8601Basic::Duration.new 'P1DT1H' # => # date_time = ISO8601Basic::DateTime.new '2010-01-01T10:30' # => # date_time + duration # => # ```