summaryrefslogtreecommitdiffstats
path: root/lib/xmlrpc/datetime.rb
diff options
context:
space:
mode:
authormneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 01:11:49 +0000
committermneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 01:11:49 +0000
commitbf9d8ec404dc5a94b6546a04016ee82cdded719f (patch)
tree773c5aecefde9fe6e6aa8b8ee1d77a08062435e8 /lib/xmlrpc/datetime.rb
parente929935fdc5f5a524dac42b4caebb8c27f3ce74d (diff)
downloadruby-bf9d8ec404dc5a94b6546a04016ee82cdded719f.tar.gz
ruby-bf9d8ec404dc5a94b6546a04016ee82cdded719f.tar.xz
ruby-bf9d8ec404dc5a94b6546a04016ee82cdded719f.zip
* applied patch by MoonWolf <moonwolf@moonwolf.com> to allow parsing
datetime.iso8601 (e.g. 20041105T01:15:23Z). * added test case git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc/datetime.rb')
-rw-r--r--lib/xmlrpc/datetime.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb
index e3bc6943f..8ae6c7a56 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