feat: have timerange have a default display way
This commit is contained in:
@@ -80,6 +80,9 @@ class TimeRange:
|
|||||||
val = stopdt.strftime(DATETIME_PRINT_FORMAT)
|
val = stopdt.strftime(DATETIME_PRINT_FORMAT)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return f"TimeRange({self.timerange_str})"
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
"""Override the default Equals behavior"""
|
"""Override the default Equals behavior"""
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user