This commit is contained in:
2024-11-23 23:25:52 +01:00
parent c808e50c34
commit 19dc208b6a
19 changed files with 822 additions and 113 deletions

View File

@@ -0,0 +1,10 @@
"""Funzioni per timestamp
"""
from datetime import datetime
def timestamp(t):
fmt = {"log": "%Y-%m-%d %H:%M:%S", "tms": "%Y%m%d%H%M%S"}
return datetime.now().strftime(fmt[t])