def __init__(self, freq, **kwargs): if 'dtstart' in kwargs: kwargs['dtstart'] = parse(kwargs['dtstart']) if 'until' in kwargs: kwargs['until'] = parse(kwargs['until']) if freq == BDAILY: rrulebase.__init__(self, DAILY, **kwargs) self._bdaily = True if self._count: self._count *= 2 else: rrulebase.__init__(self, freq, **kwargs) self._bdaily = False
def __init__(self, freq, dtstart=None, interval=1, wkst=None, count=None, until=None, bysetpos=None, bymonth=None, bymonthday=None, byyearday=None, byeaster=None, byweekno=None, byweekday=None, byhour=None, byminute=None, bysecond=None, cache=False): rr.__init__(self, freq, dtstart=dtstart, interval=interval, wkst=wkst, count=count, until=until, bysetpos=bysetpos, bymonth=bymonth, bymonthday=bymonthday, byyearday=byyearday, byeaster=byeaster, byweekno=byweekno, byweekday=byweekday, byhour=byhour, byminute=byminute, bysecond=bysecond, cache=cache) # rrule is an old-style class self._pprint()
def __init__(self, freq, holidays=None, **kwargs): self.holidays = holidays if self.holidays is None: self.holidays = getattr(rrule, 'holidays', ()) if 'dtstart' in kwargs: kwargs['dtstart'] = parse(kwargs['dtstart']) if 'until' in kwargs: kwargs['until'] = parse(kwargs['until']) if freq == BDAILY: rrulebase.__init__(self, DAILY, **kwargs) self._bdaily = True if self._count: self._count *= 2 else: rrulebase.__init__(self, freq, **kwargs) self._bdaily = False
def __init__(self, freq, holidays=None, workdays=None, **kwargs): self.holidays = holidays if self.holidays is None: self.holidays = bdateutil.HOLIDAYS self.workdays = workdays if self.workdays is None: self.workdays = bdateutil.WORKDAYS if 'dtstart' in kwargs: kwargs['dtstart'] = parse(kwargs['dtstart']) if 'until' in kwargs: kwargs['until'] = parse(kwargs['until']) if freq == BDAILY: rrulebase.__init__(self, DAILY, **kwargs) self._bdaily = True if self._count: self._count *= 2 else: rrulebase.__init__(self, freq, **kwargs) self._bdaily = False