instance method
xmlschema
Ruby on Rails edge
Signature
xmlschema(fraction_digits = 0)
Returns a string of the object’s date and time in the ISO 8601 standard format.
Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00"
Parameters
-
fraction_digitsopt = 0
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 171
def xmlschema(fraction_digits = 0)
precision = fraction_digits || 0
if @is_utc
utc.iso8601(precision)
else
transfer_time_values_to_utc_constructor(utc).getlocal(utc_offset).iso8601(precision)
end
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 171
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone