diff options
author | mneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-16 01:11:49 +0000 |
---|---|---|
committer | mneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-16 01:11:49 +0000 |
commit | 8b38f8c03e28f12c4c92a47a903558b55f350c9d (patch) | |
tree | 773c5aecefde9fe6e6aa8b8ee1d77a08062435e8 /lib/xmlrpc/datetime.rb | |
parent | 0cf2581ec1ced929beaa04d154faaf8e41d0afeb (diff) | |
download | ruby-8b38f8c03e28f12c4c92a47a903558b55f350c9d.tar.gz |
* 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
Diffstat (limited to 'lib/xmlrpc/datetime.rb')
-rw-r--r-- | lib/xmlrpc/datetime.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb index e3bc6943f0..8ae6c7a56e 100644 --- a/lib/xmlrpc/datetime.rb +++ b/lib/xmlrpc/datetime.rb @@ -126,6 +126,10 @@ class DateTime [@year, @month, @day, @hour, @min, @sec] end + def ==(o) + self.to_a == o.to_a + end + end |