diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-09 01:27:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-09 01:27:35 +0000 |
commit | 63e66f08b6b524aff2bce99e30ef4fb343b2fe30 (patch) | |
tree | a51ce2c543ad1e9d652ef3bbcca3763462f85ddd | |
parent | d10451f3fd51f577e704db770de48d05044eb45c (diff) |
date_core.c: [DOC] Heisei will be assumed if no-era [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/date/date_core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 812548aeaa..b6f806ff1f 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -4608,6 +4608,10 @@ date_s__jisx0301(VALUE klass, VALUE str) * some typical JIS X 0301 formats. * * Date.jisx0301('H13.02.03') #=> #<Date: 2001-02-03 ...> + * + * For no-era year, legacy format, Heisei is assumed. + * + * Date.jisx0301('13.02.03') #=> #<Date: 2001-02-03 ...> */ static VALUE date_s_jisx0301(int argc, VALUE *argv, VALUE klass) @@ -8145,6 +8149,11 @@ datetime_s_httpdate(int argc, VALUE *argv, VALUE klass) * * DateTime.jisx0301('H13.02.03T04:05:06+07:00') * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> + * + * For no-era year, legacy format, Heisei is assumed. + * + * DateTime.jisx0301('13.02.03T04:05:06+07:00') + * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...> */ static VALUE datetime_s_jisx0301(int argc, VALUE *argv, VALUE klass) |