method
xmlschema
xmlschema(fraction_digits = 0)
public
Hide source
# File activesupport/lib/active_support/time_with_zone.rb, line 135 def xmlschema(fraction_digits = 0) fraction = if fraction_digits.to_i > 0 (".%06i" % time.usec)[0, fraction_digits.to_i + 1] end "#{time.strftime("%Y-%m-%dT%H:%M:%S")}#{fraction}#{formatted_offset(true, 'Z')}" end