Flowdock
method

rfc3339

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: Time
rfc3339(str) public

Creates a Time instance from an RFC 3339 string.

Time.rfc3339('1999-12-31T14:00:00-10:00') # => 2000-01-01 00:00:00 -1000

If the time or offset components are missing then an ArgumentError will be raised.

Time.rfc3339('1999-12-31') # => ArgumentError: invalid date
Show source
Register or log in to add new notes.