add ls, start and end command

This commit is contained in:
2024-06-13 11:15:48 +02:00
parent ce461bd087
commit c78b314684
3 changed files with 56 additions and 9 deletions

View File

@@ -37,3 +37,6 @@ class TimeSlot():
if d < self.start:
raise ValueError("End date must be after the start date.")
self._end = d.timestamp()
def end_now(self):
self.end = datetime.now()