Commit ebde06cb authored by Chris Withers's avatar Chris Withers

Removed un-necessary code.

parent 72184081
......@@ -12,7 +12,7 @@
##############################################################################
"""Encapsulation of date/time values"""
__version__='$Revision: 1.74 $'[11:-2]
__version__='$Revision: 1.75 $'[11:-2]
import re,sys, os, math, DateTimeZone
......@@ -1583,19 +1583,6 @@ class DateTime:
"""Convert to floating-point number of seconds since the epoch (gmt)"""
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment