Lines Matching refs:time

26 import io, logging, socket, os, pickle, struct, time, re
268 t = int(time.time())
273 Work out the rollover time based on the specified time.
281 # at the right time. After that, the regular interval will take care of
286 t = time.gmtime(currentTime)
288 t = time.localtime(currentTime)
303 # Rotate time is before the current time (for example when
310 # the next rollover, but offset by 1 since we just calculated the time
322 # This is because the above time calculation takes us to midnight on this
334 dstAtRollover = time.localtime(newRolloverAt)[-1]
351 t = int(time.time())
356 # set the next rollover time to avoid repeated checks.
391 # See bpo-45628: The date/time suffix could be anywhere in the
407 do a rollover; in this case, a date/time stamp is appended to the filename
409 start of the interval, not the current time. If there is a backup count,
416 # get the time that this sequence started at and make it a TimeTuple
417 currentTime = int(time.time())
418 dstNow = time.localtime(currentTime)[-1]
421 timeTuple = time.gmtime(t)
423 timeTuple = time.localtime(t)
430 timeTuple = time.localtime(t + addend)
432 time.strftime(self.suffix, timeTuple))
446 dstAtRollover = time.localtime(newRolloverAt)[-1]
587 a max retry time. Thanks to Robert Olson for the original patch
590 now = time.time()
592 # is the first time back after a disconnect, or
601 self.retryTime = None # next time, no delay before trying
603 #Creation failed, so set the retry time and return.
622 #time yet, or because we have reached the retry time and retried,
629 self.sock = None # so we can call createSocket next time
663 self.sock = None #try to reconnect next time