1、提价修改的UI关键字和case
2、提交Dashboard的Traffic关键字和一个case 3、提交GetTimeLibrary中新加的代码
This commit is contained in:
@@ -51,7 +51,13 @@ class GetTime():
|
||||
time3 = startTime2[0:-2]+"00"
|
||||
print(time3)
|
||||
return time3
|
||||
|
||||
def str2sec(self,x):
|
||||
a, b = x.strip().split(' ')
|
||||
y, m, d = a.strip().split('-')
|
||||
|
||||
h, m, s = b.strip().split(':') #.split()函数将其通过':'分隔开,.strip()函数用来除去空格
|
||||
|
||||
return int(h)*3600 + int(m)*60 + int(s),d #int()函数转换成整数运算
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#coding=utf-8
|
||||
from GetTime import GetTime
|
||||
from GetTimeLibrary.GetTime import GetTime
|
||||
|
||||
__version__ = '1.0'
|
||||
class GetTimeLibrary(GetTime):
|
||||
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
|
||||
Reference in New Issue
Block a user