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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2010-08-22 15:24:03 +00:00
parent b25bda4547
commit 9d2025c881
4 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,7 @@
Mon Aug 23 00:23:07 2010 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb, lib/date/format.rb: [ruby-core:31695]
Sun Aug 22 09:08:02 2010 Tanaka Akira <akr@fsij.org>
* include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.

View File

@ -1738,11 +1738,6 @@ class DateTime < Date
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)

View File

@ -342,7 +342,7 @@ class Date
def iso8601() strftime('%F') end
def rfc3339() iso8601 end
def rfc3339() strftime('%FT%T%:z') end
def xmlschema() iso8601 end # :nodoc:

View File

@ -332,7 +332,6 @@ class TestDateStrftime < Test::Unit::TestCase
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)