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:
parent
0cf2581ec1
commit
8b38f8c03e
4 changed files with 54 additions and 20 deletions
|
@ -126,6 +126,10 @@ class DateTime
|
|||
[@year, @month, @day, @hour, @min, @sec]
|
||||
end
|
||||
|
||||
def ==(o)
|
||||
self.to_a == o.to_a
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue