Added lt and gt for date span comparisons
svn: r11523
This commit is contained in:
parent
42b00f04f4
commit
fadeb3744e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user