From bf9d8ec404dc5a94b6546a04016ee82cdded719f Mon Sep 17 00:00:00 2001 From: mneumann Date: Tue, 16 Nov 2004 01:11:49 +0000 Subject: * applied patch by MoonWolf 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 --- lib/xmlrpc/datetime.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/xmlrpc/datetime.rb') 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 -- cgit