From 29b1c791f6e319cdab828cee5f491ca1c38e41d1 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 5 Dec 2024 13:38:14 -0500 Subject: Some New Configuration Tools --- .local/bin/days2finals.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 .local/bin/days2finals.py (limited to '.local/bin/days2finals.py') diff --git a/.local/bin/days2finals.py b/.local/bin/days2finals.py deleted file mode 100755 index 2111af6..0000000 --- a/.local/bin/days2finals.py +++ /dev/null @@ -1,23 +0,0 @@ -import datetime -now = datetime.datetime.now() - -finalsDate = datetime.datetime(2023, 5, 1, 0, 0, 0, 0) -breakDate = datetime.datetime(2023, 3, 3, 15, 0, 0, 0) -def getDays(date, name): - daysLeft = date - now - - weeks = daysLeft.days // 7 - days = daysLeft.days % 7 - minutes = daysLeft.seconds // 60 - hours = minutes // 60 - minutes %= 60 - - if (weeks < 0): - return f"{name.upper()} WEEK" - return f"{weeks} weeks {days} days and {hours} hours until {name} week" - -output = f"{getDays(finalsDate, 'finals')}" -#output += f"{getDays(breakDate, 'break')}" - - -print(output) -- cgit v1.2.3