diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:38:14 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:38:14 -0500 |
| commit | 29b1c791f6e319cdab828cee5f491ca1c38e41d1 (patch) | |
| tree | be9d9d43d150f0b72f72e4e37cc43bde0e10b72e /.local/bin/days2finals.py | |
| parent | 5849e2ad7323f086bd6edf221b29e3f0b2b7cbd3 (diff) | |
Some New Configuration Tools
Diffstat (limited to '.local/bin/days2finals.py')
| -rwxr-xr-x | .local/bin/days2finals.py | 23 |
1 files changed, 0 insertions, 23 deletions
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)
|
