instance method xmlschema

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

xmlschema()

Converts datetime to an appropriate format for use in XML

Source
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 84
        def xmlschema
          strftime("%Y-%m-%dT%H:%M:%S%Z")
        end

Defined in activesupport/lib/active_support/core_ext/date_time/conversions.rb line 84 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::CoreExtensions::DateTime::Conversions

Type at least 2 characters to search.

↑↓ navigate · open · esc close