method
jisx0301
ruby latest stable - Class:
DateTime
jisx0301(*args)public
Returns a string in a JIS X 0301 format. The optional argument n is the number of digits for fractional seconds.
DateTime .parse ('2001年02月03日T04:05:06.123456789+07:00').jisx0301 (9) #=> "平成13年02月03日T04:05:06.123456789+07:00"
static VALUE
dt_lite_jisx0301(int argc, VALUE *argv, VALUE self)
{
long n = 0;
rb_check_arity(argc, 0, 1);
if (argc >= 1)
n = NUM2LONG(argv[0]);
return rb_str_append(d_lite_jisx0301(self),
iso8601_timediv(self, n));
}