'Constructor
@param start: the start of the time period (datetime)
@param end: the end of the time period (datetime)'

def __init__(self, start, end=None):

    self.start = tp_tzsafe(start)
    self.end = tp_tzsafe(end)
    self.pevents = {}
    self.cevents = {}
    self._reset()
