Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601
branch: master

This branch is 1 commit ahead, 216 commits behind arnau:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Gemfile
LICENSE
README
Rakefile
iso8601.gemspec

README

# ISO8601

ISO8601 is a simple implementation of the ISO 8601 (Data elements and 
interchange formats — Information interchange — Representation of dates and 
times) standard.

## COMMENTS

Because Durations and DateTime has substract method, Durations has sign to represent a negative value:

  * `(ISO8601::Duration.new("PT10S") - ISO8601::Duration.new("PT12S")).to_s #=> "-PT2S"`
  * `(ISO8601::Duration.new("-PT10S") + ISO8601::Duration.new("PT12S")).to_s #=> "PT2S"`


## TODO

* Decimal fraction in dateTime and duration patterns
* Recurring time intervals
* Ordinal date pattern (YYYY-DDD)
* Week date pattern (YYYY-Www-D)
* Week duration pattern (P[n]Y[n]W)

## Dependencies

TODO

## License
ISO8601 is distributed under the LGPL[http://www.gnu.org/licenses/lgpl.html] license.

## Author
Arnau Siches, <arnau.siches@gmail.com>
Something went wrong with that request. Please try again.