Method: ActiveSupport::TimeWithZone#xmlschema
- Defined in:
- lib/active_support/time_with_zone.rb
#xmlschema(fraction_digits = 0) ⇒ Object Also known as: iso8601, rfc3339
158 159 160 |
# File 'lib/active_support/time_with_zone.rb', line 158 def xmlschema(fraction_digits = 0) "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}" end |