jisx0301(p1 = v1, p2 = v2)
public
Creates a new Date object by parsing from a string according to
some typical JIS X 0301 formats.
Date.jisx0301('H13.02.03')
For no-era year, legacy format, Heisei is assumed.
Date.jisx0301('13.02.03')
static VALUE
date_s_jisx0301(int argc, VALUE *argv, VALUE klass)
{
VALUE str, sg;
rb_scan_args(argc, argv, "02", &str, &sg);
switch (argc) {
case 0:
str = rb_str_new2("-4712-01-01");
case 1:
sg = INT2FIX(DEFAULT_SG);
}
{
VALUE hash = date_s__jisx0301(klass, str);
return d_new_by_frags(klass, hash, sg);
}
}