[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.74.2.1

Chris Withers chrisw@nipltd.com
Thu, 7 Feb 2002 05:37:12 -0500


Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv22565

Modified Files:
      Tag: Zope-2_5-branch
	DateTime.py 
Log Message:
Merge test fixes from HEAD.

=== Zope/lib/python/DateTime/DateTime.py 1.74 => 1.74.2.1 ===
         return float(self._t)
 
-    def debugCompare(self, dt):
-        '''Compares the internal representation of the date with
-        the representation in dt.  Allows sub-millisecond variations.
-        Primarily for testing.'''
-        return self.millis() == dt.millis() and \
-               math.floor(self._t * 1000.0) == \
-               math.floor(dt._t * 1000.0) and \
-               math.floor(self._d * 86400000.0) == \
-               math.floor(dt._d * 86400000.0) and \
-               math.floor(self.time * 86400000.0) == \
-               math.floor(dt.time * 86400000.0)
-
-
     def _parse_iso8601(self,s):
         try:
             return self.__parse_iso8601(s)