Added lt and gt for date span comparisons

svn: r11523
This commit is contained in:
Doug Blank 2008-12-27 16:40:25 +00:00
parent 42b00f04f4
commit fadeb3744e

View File

@ -101,6 +101,17 @@ class Span:
return False
return self.diff_tuple == other.diff_tuple
def __lt__(self, other):
if other is None:
return False
return self.diff_tuple < other.diff_tuple
def __gt__(self, other):
if other is None:
return False
return self.diff_tuple > other.diff_tuple
#-------------------------------------------------------------------------
#
# Date class