xmlschema(fraction_digits=0) public

Returns a string which represents the time as dateTime defined by XML Schema:


where TZD is Z or [+-]hh:mm.

If self is a UTC time, Z is used as TZD. [+-]hh:mm is used otherwise.

fractional_seconds specifies a number of digits of fractional seconds. Its default value is 0.

time library should be required to use this method as follows.

require 'time'
Show source
Register or log in to add new notes.