Skip to content

Add Time#rfc3339 and Time.rfc3339#59

Open
jeremyevans wants to merge 1 commit intoruby:masterfrom
jeremyevans:rfc3339
Open

Add Time#rfc3339 and Time.rfc3339#59
jeremyevans wants to merge 1 commit intoruby:masterfrom
jeremyevans:rfc3339

Conversation

@jeremyevans
Copy link
Copy Markdown
Contributor

This allows easier transition of code using DateTime to using Time.

Time#rfc3339 is an alias to #xmlschema and is just for consistency.

Time.rfc3339 is similar to Time.xmlschema, but allows a space between the date and time, while Time.xmlschema does not (it requires a "T").

Introduce a Time._xmlschema private method so that Time.xmlschema and Time.rfc3339 can share most of the implementation.

This allows easier transition of code using DateTime to using Time.

Time#rfc3339 is an alias to #xmlschema and is just for consistency.

Time.rfc3339 is similar to Time.xmlschema, but allows a space
between the date and time, while Time.xmlschema does not (it
requires a "T").

Introduce a Time._xmlschema private method so that Time.xmlschema
and Time.rfc3339 can share most of the implementation.
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.

1 participant