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

ruby-changes:19144

From: naruse <ko1@a...>
Date: Sat, 26 Mar 2011 05:31:24 +0900 (JST)
Subject: [ruby-changes:19144] Ruby:r31183 (trunk): * ext/date/lib/date/format.rb (DateTime#strftime): removed because

naruse	2011-03-26 05:29:55 +0900 (Sat, 26 Mar 2011)

  New Revision: 31183

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

  Log:
    * ext/date/lib/date/format.rb (DateTime#strftime): removed because
      date_core defines it.

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/lib/date/format.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31182)
+++ ChangeLog	(revision 31183)
@@ -1,3 +1,8 @@
+Sat Mar 26 05:27:34 2011  NARUSE, Yui  <naruse@r...>
+
+	* ext/date/lib/date/format.rb (DateTime#strftime): removed because
+	  date_core defines it.
+
 Fri Mar 25 21:59:45 2011  Tadayoshi Funaba  <tadf@d...>
 
 	* ext/date/date_core.c: should not force cast with macros.
@@ -20,7 +25,7 @@
 
 	  Use LOG_PID instead of LOG_PERROR in Syslog.open test
 
-          LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
+	  LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
 	  that don't define it.  Solaris 9 and 10 are examples of this.
 
 	  Use LOG_PID instead.
Index: ext/date/lib/date/format.rb
===================================================================
--- ext/date/lib/date/format.rb	(revision 31182)
+++ ext/date/lib/date/format.rb	(revision 31183)
@@ -1073,10 +1073,6 @@
 
 class DateTime < Date
 
-  def strftime(fmt='%FT%T%:z')
-    super(fmt)
-  end
-
   def self._strptime(str, fmt='%FT%T%z')
     super(str, fmt)
   end

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

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