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

1
asebat/__init__.py Normal file
View File

@@ -0,0 +1 @@
"""Utilità"""

View File

View File

@@ -0,0 +1 @@
"""Parser delle centraline"""

View File

@@ -0,0 +1 @@
"""Utilità per i formati timestamp"""

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])