1、添加时间工具关键字
2、调整部分错误
This commit is contained in:
15
02-Keyword/tsg_bfapi/CommonUtil.robot
Normal file
15
02-Keyword/tsg_bfapi/CommonUtil.robot
Normal file
@@ -0,0 +1,15 @@
|
||||
*** Settings ***
|
||||
Resource ../../03-Variable/BifangApiVariable.txt
|
||||
Library DateTime
|
||||
Library String
|
||||
#Library Collections
|
||||
#Library RequestsLibrary
|
||||
|
||||
*** Keywords ***
|
||||
GetLast24HoursStartAndEndTime
|
||||
[Documentation]
|
||||
... 获取当前时间往前一天的开始结束时间,时间格式为:YYY-MM-DD H24:mm:ss
|
||||
${endtime} Get Time
|
||||
${starttime}= Add Time To Date ${endtime} -1 days
|
||||
${starttime} Get Substring ${starttime} 0 19
|
||||
[Return] ${starttime} ${endtime}
|
||||
Reference in New Issue
Block a user