/ISO8601

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

Primary LanguageRubyMIT LicenseMIT

ISO8601

New maintainer wanted

Version 0.9.0 is not compatible with previous versions. Atoms and Durations changed their interface when treating base dates so it is only applied when computing the Atom length (e.g. #to_seconds). As a consequence, it is no longer possible to do operations like DateTime + Duration.

Version 1.0.0 will lock public interfaces.

Check the changelog if you are upgrading from an older version.

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

Build status

Build Status Gem Version

Supported versions

  • MRI 2.5, 2.6, 2.7

Documentation

Check the rubydoc documentation. Or take a look to the implementation notes:

Testing

Install a Ruby version. E.g. you can install Ruby 2.7 with:

$ nix-shell

Then

$ bundle install
$ bundle exec rake

Contributing

Contributors

Please see CONTRIBUTING.md

License

Arnau Siches under the MIT License