Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ruby's ISO8601 time formatter and parser #41

Merged
merged 2 commits into from
Sep 26, 2013

Conversation

tomtaylor
Copy link
Contributor

This makes two changes:

  1. It slightly modifies the generated time string to include a colon between the hour and minute in the time zone. For example: +01:00 instead of +0100.

  2. It adds Time support to the parser, by running it through Ruby's ISO8601 time formatter, and skipping over the output if it's not an ISO8601 string. This could have performance implications.

This could be considered a breaking change, as it modifies the string generated
for a Time, to include a colon separator between the hour and minute of the
time zone, so +01:00 instead of +0100.
@tomtaylor
Copy link
Contributor Author

Any thoughts on this?

@asenchi
Copy link
Owner

asenchi commented Sep 26, 2013

Cool, thanks!

asenchi added a commit that referenced this pull request Sep 26, 2013
Use Ruby's ISO8601 time formatter and parser
@asenchi asenchi merged commit 54452a4 into asenchi:master Sep 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants