Searched defs:time_format (Results 1 - 2 of 2) sorted by relevance

/external/autotest/site_utils/
H A Ddiagnosis_utils.py68 time_format = '%m-%d-%Y [%H:%M:%S]' variable in class:JobTimer
93 return datetime_obj.strftime(cls.time_format)
/external/autotest/contrib/
H A Dlog_distiller.py23 time_format = '%Y-%m-%d-%H.%M.%S' variable
35 def should_process_log(time_str, time_format, cutoff_days=7):
40 @param time_format: A string representing the format of the time string.
46 log_time = datetime.datetime.strptime(time_str, time_format)
47 now = datetime.datetime.strptime(time.strftime(time_format), time_format)

Completed in 172 milliseconds