base_profile.py: these two methods do not actually appear to function with timestamps, I get a math error

Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
Jed Reynolds
2021-03-09 00:48:25 -08:00
parent 33b5472263
commit 1278b3b0e8

View File

@@ -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()