diff --git a/src/gen/lib/date.py b/src/gen/lib/date.py index 282474258..8ea68b93c 100644 --- a/src/gen/lib/date.py +++ b/src/gen/lib/date.py @@ -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