mod pasqua

This commit is contained in:
2020-04-13 19:22:19 +02:00
parent a178ba9026
commit 75ddd5d131
5 changed files with 12 additions and 0 deletions

View File

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