mod pasqua
This commit is contained in:
1
asebat/__init__.py
Normal file
1
asebat/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Utilità"""
|
||||
0
asebat/parsers/G801_parser.py
Normal file
0
asebat/parsers/G801_parser.py
Normal file
1
asebat/parsers/__init__.py
Normal file
1
asebat/parsers/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Parser delle centraline"""
|
||||
1
asebat/timefmt/__init__.py
Normal file
1
asebat/timefmt/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Utilità per i formati timestamp"""
|
||||
9
asebat/timefmt/timestamp_fmt.py
Normal file
9
asebat/timefmt/timestamp_fmt.py
Normal 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])
|
||||
Reference in New Issue
Block a user