mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67cf354b46
commit
1f35d2485c
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat May 21 22:46:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
|
||||||
|
|
||||||
Sat May 21 22:14:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Sat May 21 22:14:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* io.c (rb_io_extract_modeenc): accept combination hash and
|
* io.c (rb_io_extract_modeenc): accept combination hash and
|
||||||
|
|
|
@ -604,7 +604,7 @@ date_strftime_with_tmx(char *s, size_t maxsize, const char *format,
|
||||||
|
|
||||||
#ifdef VMS_EXT
|
#ifdef VMS_EXT
|
||||||
case 'v': /* date as dd-bbb-YYYY */
|
case 'v': /* date as dd-bbb-YYYY */
|
||||||
STRFTIME("%e-%^b-%4Y");
|
STRFTIME("%e-%b-%Y");
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class TestDateStrftime < Test::Unit::TestCase
|
||||||
'%t'=>["\t",{}],
|
'%t'=>["\t",{}],
|
||||||
'%u'=>['6',{:cwday=>6}],
|
'%u'=>['6',{:cwday=>6}],
|
||||||
'%V'=>['05',{:cweek=>5}],
|
'%V'=>['05',{:cweek=>5}],
|
||||||
'%v'=>[' 3-FEB-2001',{:mday=>3,:mon=>2,:year=>2001}],
|
'%v'=>[' 3-Feb-2001',{:mday=>3,:mon=>2,:year=>2001}],
|
||||||
'%z'=>['+0000',{:zone=>'+0000',:offset=>0}],
|
'%z'=>['+0000',{:zone=>'+0000',:offset=>0}],
|
||||||
'%+'=>['Sat Feb 3 00:00:00 +00:00 2001',
|
'%+'=>['Sat Feb 3 00:00:00 +00:00 2001',
|
||||||
{:wday=>6,:mon=>2,:mday=>3,
|
{:wday=>6,:mon=>2,:mday=>3,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue