mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
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:
@@ -66,9 +66,11 @@ 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user