diff --git a/skyfield/timelib.py b/skyfield/timelib.py index a82ffadd..3410d0ee 100644 --- a/skyfield/timelib.py +++ b/skyfield/timelib.py @@ -920,6 +920,9 @@ def __lt__(self, other): return ((self.tt_fraction - other.tt_fraction) + (self.whole - other.whole)) < 0 + def __le__(self, other): + return self == other or self < other + def __add__(self, other_time): if isinstance(other_time, timedelta): w = other_time.days