Home
last modified time | relevance | path

Searched refs:time_format (Results 1 - 9 of 9) sorted by relevance

/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dtime_util.py119 def get_now_datetime(cls, time_format="%Y%m%d%H%M%S%f"):
122 time_format: Obtain the time format, for example,
127 return get_cst_time().strftime(time_format)
140 def get_formated_time(cls, time_format='%Y-%m-%d %H:%M:%S'):
143 :param time_format: time format
146 return get_cst_time().strftime(time_format)
150 time_format='%Y-%m-%d %H:%M:%S'):
153 start_format_time, time_format).timestamp()
155 end_format_time, time_format).timestamp()
/test/testfwk/xdevice/plugins/devicetest/core/
H A Dreport.py32 time_format = "%Y-%m-%d %H:%M:%S" variable in ReportConstants
91 return stamp_time.strftime(ReportConstants.time_format)
94 return get_cst_time().strftime(ReportConstants.time_format)
/test/testfwk/xdevice/src/xdevice/_core/context/
H A Dupload.py166 start_time, ReportConstant.time_format)) * 1000)
168 end_time, ReportConstant.time_format)) * 1000)
176 timestamp, ReportConstant.time_format)) * 1000)
183 timestamp.split(".")[0], ReportConstant.time_format)) * 1000)
H A Dhandler.py97 ReportConstant.start_time: time.strftime(ReportConstant.time_format, time.localtime()),
98 ReportConstant.end_time: time.strftime(ReportConstant.time_format, time.localtime()),
/test/testfwk/xdevice/src/xdevice/_core/report/
H A Dresult_reporter.py223 end_time = time.strftime(ReportConstant.time_format, time.localtime())
226 time.mktime(time.strptime(start_time, ReportConstant.time_format)),
227 time.mktime(time.strptime(end_time, ReportConstant.time_format)))
310 time.mktime(time.strptime(test_start, ReportConstant.time_format)),
311 time.mktime(time.strptime(test_end, ReportConstant.time_format)))
543 ReportConstant.end_time: time.strftime(ReportConstant.time_format,
H A D__main__.py60 task_info.test_time = time.strftime(ReportConstant.time_format, time.localtime())
H A Dsuite_reporter.py162 ReportConstant.time_stamp: time.strftime(ReportConstant.time_format, time.localtime()),
H A Dreporter_helper.py112 time_format = "%Y-%m-%d %H:%M:%S" variable in ReportConstant
515 start_time, ReportConstant.time_format))
517 end_time, ReportConstant.time_format))
/test/testfwk/xdevice/src/xdevice/_core/executor/
H A Dconcurrent.py183 ReportConstant.time_format, time.localtime(int(self.start_time))),
185 ReportConstant.time_format, time.localtime(int(end_time))),

Completed in 12 milliseconds