Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/l/a/labere-HEAD/core/apscheduler/triggers/interval.py   labere(Download)
from datetime import datetime, timedelta
from math import ceil
 
from core.apscheduler.util import convert_to_datetime, timedelta_seconds
 
 
        self.interval = interval
        self.interval_length = timedelta_seconds(self.interval)
        if self.interval_length == 0:
            self.interval = timedelta(seconds=1)
    def get_next_fire_time(self, start_date):
        if start_date < self.start_date:
            return self.start_date
 
        timediff_seconds = timedelta_seconds(start_date - self.start_date)