Method: DateTime#rfc3339
- Defined in:
- ext/date/date_core.c
#rfc3339([n = 0]) ⇒ String
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').rfc3339(9)
#=> “2001-02-03T04:05:06.123456789+07:00”
8407 8408 8409 8410 8411 |
# File 'ext/date/date_core.c', line 8407 static VALUE dt_lite_rfc3339(int argc, VALUE *argv, VALUE self) { return dt_lite_iso8601(argc, argv, self); } |