method

xmlschema

v1_9_3_392 - Show latest stable - Class: DateTime
xmlschema(p1 = v1)
public

This method is equivalent to strftime(‘%FT%T’). The optional argument n is length of fractional seconds.

For example:

DateTime.parse('2001-02-03T04:05:06.123456789+07:00').iso8601(9)
                          #=> "2001-02-03T04:05:06.123456789+07:00"