Lines Matching defs:time
5 import time
481 with mock.patch('time.localtime') as localtime_mock:
482 time_struct = time.struct_time(
485 localtime = time.localtime()
488 time.strftime("%Y%m%dT%H:%M:%S", localtime))
494 time.strftime("%Y%m%dT%H:%M:%S", time.localtime(d)))
502 d = time.localtime(1181399930.036952)
504 self.assertEqual(str(t), time.strftime("%Y%m%dT%H:%M:%S", d))
605 # the event after it has been set the first time to catch the second set.