method

jisx0301

v1_9_3_392 - Show latest stable - Class: DateTime
jisx0301(p1 = v1)
public

Returns a string in a JIS X 0301 format. The optional argument n is length of fractional seconds.

For example:

DateTime.parse('2001-02-03T04:05:06.123456789+07:00').jisx0301(9)
                          #=> "H13.02.03T04:05:06.123456789+07:00"