mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
get_milliseconds function
This commit is contained in:
@@ -8,9 +8,10 @@ from pprint import pprint
|
||||
import time
|
||||
import random
|
||||
import string
|
||||
import datetime
|
||||
import argparse
|
||||
import LANforge.LFUtils
|
||||
from LANforge.LFUtils import *
|
||||
import argparse
|
||||
from LANforge import LFRequest
|
||||
import LANforge.LFRequest
|
||||
|
||||
@@ -550,6 +551,10 @@ class LFCliBase:
|
||||
chars = string.ascii_letters
|
||||
return ''.join(random.choice(chars) for x in range(size))
|
||||
|
||||
def get_milliseconds(self,
|
||||
timestamp):
|
||||
return (timestamp - datetime.datetime(1970,1,1)).total_seconds()*1000
|
||||
|
||||
Help_Mode = """Station WiFi modes: use the number value below:
|
||||
auto : 0,
|
||||
a : 1,
|
||||
|
||||
Reference in New Issue
Block a user