add nice output for ls

This commit is contained in:
2024-06-13 10:38:43 +02:00
parent 0abf886d11
commit ce461bd087
3 changed files with 21 additions and 2 deletions

View File

@@ -28,7 +28,9 @@ class TimeSlot():
@property
def end(self):
return datetime.fromtimestamp(self._end)
if "_end" in self.__dict__:
return datetime.fromtimestamp(self._end)
return None
@end.setter
def end(self, d: datetime):