method

xmlschema

v1_9_3_125 - Show latest stable - Class: DateTime
xmlschema(p1 = v1, p2 = v2)
public

Creates a new Date object by parsing from a string according to some typical XML Schema formats.

For example:

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