1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-05-02 03:39:32 +00:00
This commit is contained in:
Rae 5e 2025-03-10 23:34:04 -04:00
parent fea9f7203e
commit 69bea24303
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
11 changed files with 93 additions and 53 deletions

24
scripts/arvelie.py Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env python3
from datetime import datetime
from sys import argv
from time import sleep
months = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
inception = 2024 # 30 nov 24 21:37
now = datetime.now().timetuple()
day = now.tm_yday
month = day // 14
if month >= 26:
month = "+"
else:
month = months[month]
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14 - 1).zfill(2)
try:
_ = argv.index("-y")
print("date|string|" + out + "\n")
except ValueError:
print(out)