1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* applied patch by MoonWolf <moonwolf@moonwolf.com> to allow parsing

datetime.iso8601 (e.g. 20041105T01:15:23Z).

* added test case


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mneumann 2004-11-16 01:11:49 +00:00
parent 0cf2581ec1
commit 8b38f8c03e
4 changed files with 54 additions and 20 deletions

View file

@ -126,6 +126,10 @@ class DateTime
[@year, @month, @day, @hour, @min, @sec]
end
def ==(o)
self.to_a == o.to_a
end
end