1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-05-02 19:53:07 +00:00
This commit is contained in:
Rae 5e 2025-03-11 00:12:45 -04:00
parent eb7e066fc9
commit 1699964fe5
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
2 changed files with 3 additions and 6 deletions

View file

@ -8,7 +8,7 @@ months = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N",
inception = 2024 # 30 nov 24 21:37
now = datetime.now().timetuple()
day = now.tm_yday
day = now.tm_yday - 1
month = day // 14
if month >= 26:
@ -16,7 +16,7 @@ if month >= 26:
else:
month = months[month]
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14 - 1).zfill(2)
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14).zfill(2)
try:
_ = argv.index("-y")
print("date|string|" + out + "\n")