[前][次][番号順一覧][スレッド一覧]

ruby-changes:55266

From: nobu <ko1@a...>
Date: Tue, 9 Apr 2019 10:27:40 +0900 (JST)
Subject: [ruby-changes:55266] nobu:r67473 (trunk): date_core.c: [DOC] Heisei will be assumed if no-era [ci skip]

nobu	2019-04-09 10:27:35 +0900 (Tue, 09 Apr 2019)

  New Revision: 67473

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67473

  Log:
    date_core.c: [DOC] Heisei will be assumed if no-era [ci skip]

  Modified files:
    trunk/ext/date/date_core.c
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 67472)
+++ ext/date/date_core.c	(revision 67473)
@@ -4608,6 +4608,10 @@ date_s__jisx0301(VALUE klass, VALUE str) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L4608
  * 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 *arg https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8149
  *
  *    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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]