Lines Matching defs:time
24 import time
39 TS.inner_stack.append(time.time())
54 cur_time = (time.time() - TS.inner_stack.pop()) * 1000
76 time_value: Time to be processed. If the time does not exist,
77 the current time is used.
84 time_value = time.time()
85 return datetime(*(time.localtime(time_value)[:6]))
93 Obtains the current character string that contains only time
96 time_val: Time to be processed. If the time does not exist,
97 the current time is used.
115 strpt_time = time.strptime(convert_time, formate)
116 return int(time.mktime(strpt_time))
122 time_format: Obtain the time format, for example,
124 The time in 2017-04-25 11:26:33.293963 format is returned.
142 get current time, for example: 2020-08-04 15:48:04
143 :param time_format: time format
144 :return: current time
163 """Current epoch time in milliseconds.
165 An integer representing the current epoch time in milliseconds.
167 return int(round(time.time() * 1000))
171 """Returns the current time in human readable format.
173 The current time stamp in Month-Day-Year Hour:Min:Sec format.
175 return time.strftime("%m-%d-%Y %H:%M:%S "