зеркало из https://github.com/github/ruby.git
* 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:
Родитель
b25bda4547
Коммит
9d2025c881
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче