From 1278b3b0e8fa520ff2f1232a724e874e20db2d2a Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Tue, 9 Mar 2021 00:48:25 -0800 Subject: [PATCH] base_profile.py: these two methods do not actually appear to function with timestamps, I get a math error Signed-off-by: Jed Reynolds --- py-json/base_profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-json/base_profile.py b/py-json/base_profile.py index f3e79bac..6ed02309 100644 --- a/py-json/base_profile.py +++ b/py-json/base_profile.py @@ -65,10 +65,12 @@ class BaseProfile: def replace_special_char(self, str): return str.replace('+', ' ').replace('_', ' ').strip(' ') - + + # @deprecate me def get_milliseconds(self, timestamp): return (timestamp - datetime.datetime(1970,1,1)).total_seconds()*1000 + # @deprecate me def get_seconds(self, timestamp): return (timestamp - datetime.datetime(1970,1,1)).total_seconds()