method

rfc3339

v1_9_3_392 - Show latest stable - Class: Date
rfc3339(p1 = v1, p2 = v2)
public

Creates a new Date object by parsing from a string according to some typical RFC 3339 formats.

For example:

Date.rfc3339('2001-02-03T04:05:06+07:00') #=> #<Date: 2001-02-03 ...>