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
This commit is contained in:
parent
d10451f3fd
commit
63e66f08b6
@ -4608,6 +4608,10 @@ date_s__jisx0301(VALUE klass, VALUE str)
|
|||||||
* some typical JIS X 0301 formats.
|
* some typical JIS X 0301 formats.
|
||||||
*
|
*
|
||||||
* Date.jisx0301('H13.02.03') #=> #<Date: 2001-02-03 ...>
|
* 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
|
static VALUE
|
||||||
date_s_jisx0301(int argc, VALUE *argv, VALUE klass)
|
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.jisx0301('H13.02.03T04:05:06+07:00')
|
||||||
* #=> #<DateTime: 2001-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
|
static VALUE
|
||||||
datetime_s_jisx0301(int argc, VALUE *argv, VALUE klass)
|
datetime_s_jisx0301(int argc, VALUE *argv, VALUE klass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user