def __init__( self, schedule, tz = 'UTC'): self.setSlotLengthInMin(5) sd, ed = schedule.getAdjustedStartDate(tz), schedule.getAdjustedEndDate(tz) self.setStartDate( sd ) self.setEndDate( ed ) self._sch = schedule #self.listEntries = schedule.getEntries() self._tz = tz self.mapEntryList(self._sch.getEntries())
def __init__( self, schedule=None, tz = 'UTC' ): self._tz = tz sd, ed = schedule.getAdjustedStartDate(tz), schedule.getAdjustedEndDate(tz) self.setStartDate( sd ) self.setEndDate( ed )
def __init__(self, schedule=None, tz='UTC'): self._tz = tz sd, ed = schedule.getAdjustedStartDate( tz), schedule.getAdjustedEndDate(tz) self.setStartDate(sd) self.setEndDate(ed)