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

ruby-changes:19626

From: tadf <ko1@a...>
Date: Sat, 21 May 2011 23:06:16 +0900 (JST)
Subject: [ruby-changes:19626] tadf:r31672 (trunk): * ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".

tadf	2011-05-21 22:47:18 +0900 (Sat, 21 May 2011)

  New Revision: 31672

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31672

  Log:
    * ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/date_strftime.c
    trunk/test/date/test_date_strftime.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31671)
+++ ChangeLog	(revision 31672)
@@ -1,3 +1,7 @@
+Sat May 21 22:46:26 2011  Tadayoshi Funaba  <tadf@d...>
+
+	* ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
+
 Sat May 21 22:14:35 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (rb_io_extract_modeenc): accept combination hash and
Index: ext/date/date_strftime.c
===================================================================
--- ext/date/date_strftime.c	(revision 31671)
+++ ext/date/date_strftime.c	(revision 31672)
@@ -604,7 +604,7 @@
 
 #ifdef VMS_EXT
 		case 'v':	/* date as dd-bbb-YYYY */
-			STRFTIME("%e-%^b-%4Y");
+			STRFTIME("%e-%b-%Y");
 			continue;
 #endif
 
Index: test/date/test_date_strftime.rb
===================================================================
--- test/date/test_date_strftime.rb	(revision 31671)
+++ test/date/test_date_strftime.rb	(revision 31672)
@@ -47,7 +47,7 @@
     '%t'=>["\t",{}],
     '%u'=>['6',{:cwday=>6}],
     '%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}],
     '%+'=>['Sat Feb  3 00:00:00 +00:00 2001',
       {:wday=>6,:mon=>2,:mday=>3,

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

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