Lines Matching refs:interval
168 def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False):
173 # Calculate the real rollover interval, which is just the number of
186 self.interval = 1 # one second
190 self.interval = 60 # one minute
194 self.interval = 60 * 60 # one hour
198 self.interval = 60 * 60 * 24 # one day
202 self.interval = 60 * 60 * 24 * 7 # one week
211 raise ValueError("Invalid rollover interval specified: %s" % self.when)
214 self.interval = self.interval * interval # multiply by units requested
225 result = currentTime + self.interval
226 # If we are rolling over at midnight or weekly, then the interval is already known.
227 # What we need to figure out is WHEN the next interval is. In other words,
228 # if you are rolling over at midnight, then your base interval is 1 day,
231 # at the right time. After that, the regular interval will take care of
250 # Case 2) The day to rollover is further in the interval (i.e., today is
253 # Case 3) The day to rollover is behind us in the interval (i.e., today
321 start of the interval, not the current time. If there is a backup count,
331 t = self.rolloverAt - self.interval
359 newRolloverAt = newRolloverAt + self.interval