This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/02-Keyword/tsg_bfapi/CommonUtil.robot
dongxiaoyan fc79ac3782 1、添加时间工具关键字
2、调整部分错误
2020-06-18 13:46:16 +08:00

15 lines
567 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

*** 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}