mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-02 19:53:07 +00:00
~
This commit is contained in:
parent
fea9f7203e
commit
69bea24303
11 changed files with 93 additions and 53 deletions
24
scripts/arvelie.py
Executable file
24
scripts/arvelie.py
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue