iso8601(*args) public

This method is equivalent to strftime(ā€˜%FT%T%:zā€™). The optional argument n is the number of digits for fractional seconds.

DateTime.parse('2001-02-03T04:05:06.123456789+07:00').iso8601(9)
                          #=> "2001-02-03T04:05:06.123456789+07:00"
Show source
Register or log in to add new notes.