def greaterThan(self, t):
"""Compare this DateTime object to another DateTime object
OR a floating point number such as that which is returned
by the python time module.
Returns true if the object represents a date/time greater
than the specified DateTime or time module style time.
Revised to give more correct results through comparison of
long integer microseconds.
"""
if t is None:
t = 0
if isinstance(t, float):
return self._micros > long(t * 1000000)
try:
return self._micros > t._micros
except AttributeError:
return self._micros > t
评论列表
文章目录