From 63e66f08b6b524aff2bce99e30ef4fb343b2fe30 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 9 Apr 2019 01:27:35 +0000 Subject: 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 --- ext/date/date_core.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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') #=> # + * + * 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) @@ -8145,6 +8149,11 @@ datetime_s_httpdate(int argc, VALUE *argv, VALUE klass) * * DateTime.jisx0301('H13.02.03T04:05:06+07:00') * #=> # + * + * For no-era year, legacy format, Heisei is assumed. + * + * DateTime.jisx0301('13.02.03T04:05:06+07:00') + * #=> # */ static VALUE datetime_s_jisx0301(int argc, VALUE *argv, VALUE klass) -- cgit v1.2.3