get_milliseconds function

This commit is contained in:
Matthew Stidham
2021-02-04 11:52:21 -08:00
parent f1495b1ac6
commit 0483b7dec3
3 changed files with 10 additions and 5 deletions

View File

@@ -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,