w3cdtf(date) public

This method converts a W3CDTF string date/time format to Time object.

The W3CDTF format is defined here: http://www.w3.org/TR/NOTE-datetime

Time.w3cdtf('2003-02-15T13:50:05-05:00')
# => 2003-02-15 10:50:05 -0800
Time.w3cdtf('2003-02-15T13:50:05-05:00').class
# => Time
Show source
Register or log in to add new notes.