iso8601 2

dt.iso8601([n=0]) â string
dt.xmlschema([n=0]) â string
Instance Public methods

This method is equivalent to strftime('%FT%T'). The optional argument n is length of fractional seconds.

DateTime.parse('2001-02-03T04:05:06.123456789+07:00').iso8601(9)
                          #=> "2001-02-03T04:05:06.123456789+07:00"
doc_ruby_on_rails
2015-04-02 18:09:53
Comments
Leave a Comment

Please login to continue.