Add epoche timestamp conversion to visidatarc
This commit is contained in:
1 parent
b12e3780af
commit
4710a31bf1
1 file changed
+3
@@ -3,6 +3,9 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
|
def timefromts(val):
|
||||||
|
return datetime.fromtimestamp(float(val))
|
||||||
|
|
||||||
#sym-ts = hexNcoded NT-Timestamp = Nanoseconds since 01.01.1601
|
#sym-ts = hexNcoded NT-Timestamp = Nanoseconds since 01.01.1601
|
||||||
def sym_time(val):
|
def sym_time(val):
|
||||||
a=int(val,16) #decode hex
|
a=int(val,16) #decode hex
|
||||||
|
|||||||
Reference in new issue
Block a user