From b70bf282e0bba42aab907c6bd020b9533b0ab3ca Mon Sep 17 00:00:00 2001 From: TKE Date: Fri, 18 Dec 2020 10:14:16 +0100 Subject: [PATCH] Add epoche timestamp conversion to visidatarc --- visidatarc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visidatarc b/visidatarc index c829df1..b743f88 100644 --- a/visidatarc +++ b/visidatarc @@ -3,6 +3,9 @@ from datetime import datetime import functools +def timefromts(val): + return datetime.fromtimestamp(float(val)) + #sym-ts = hexNcoded NT-Timestamp = Nanoseconds since 01.01.1601 def sym_time(val): a=int(val,16) #decode hex