xmlschema(p1 = v1)
This method is equivalent to strftime(â%FT%Tâ). The optional argument n is length of fractional seconds.
For example:
DateTime.parse('2001-02-03T04:05:06.123456789+07:00').iso8601(9) #=> "2001-02-03T04:05:06.123456789+07:00"
static VALUE dt_lite_iso8601(int argc, VALUE *argv, VALUE self) { VALUE n; rb_scan_args(argc, argv, "01", &n); if (argc < 1) n = INT2FIX(0); return f_add(strftimev("%Y-%m-%d", self, set_tmx), iso8601_timediv(self, n)); }