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

ruby-changes:17072

From: tadf <ko1@a...>
Date: Mon, 23 Aug 2010 00:38:00 +0900 (JST)
Subject: [ruby-changes:17072] Ruby:r29069 (trunk): * lib/date.rb, lib/date/format.rb:

tadf	2010-08-23 00:24:03 +0900 (Mon, 23 Aug 2010)

  New Revision: 29069

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

  Log:
    * lib/date.rb, lib/date/format.rb: [ruby-core:31695]

  Modified files:
    trunk/ChangeLog
    trunk/lib/date/format.rb
    trunk/lib/date.rb
    trunk/test/date/test_date_strftime.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29068)
+++ ChangeLog	(revision 29069)
@@ -1,3 +1,7 @@
+Mon Aug 23 00:23:07 2010  Tadayoshi Funaba  <tadf@d...>
+
+	* lib/date.rb, lib/date/format.rb: [ruby-core:31695]
+
 Sun Aug 22 09:08:02 2010  Tanaka Akira  <akr@f...>
 
 	* include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
Index: lib/date/format.rb
===================================================================
--- lib/date/format.rb	(revision 29068)
+++ lib/date/format.rb	(revision 29069)
@@ -342,7 +342,7 @@
 
   def iso8601() strftime('%F') end
 
-  def rfc3339() iso8601 end
+  def rfc3339() strftime('%FT%T%:z') end
 
   def xmlschema() iso8601 end # :nodoc:
 
Index: lib/date.rb
===================================================================
--- lib/date.rb	(revision 29068)
+++ lib/date.rb	(revision 29069)
@@ -1738,11 +1738,6 @@
     new_by_frags(elem, sg)
   end
 
-  def self.rfc3339(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
-    elem = _rfc3339(str)
-    new_by_frags(elem, sg)
-  end
-
   def self.xmlschema(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
     elem = _xmlschema(str)
     new_by_frags(elem, sg)
Index: test/date/test_date_strftime.rb
===================================================================
--- test/date/test_date_strftime.rb	(revision 29068)
+++ test/date/test_date_strftime.rb	(revision 29069)
@@ -332,7 +332,6 @@
     assert_equal(d.ctime, d.asctime)
 
     assert_equal('2001-02-03', d.iso8601)
-    assert_equal(d.rfc3339, d.iso8601)
     assert_equal(d.xmlschema, d.iso8601)
     assert_equal('Sat, 3 Feb 2001 00:00:00 +0000', d.rfc2822)
     assert_equal(d.rfc822, d.rfc2822)

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

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