def fset(self, value): if type(value) is not str: raise TypeError self._startYMD = value self._startDT = dt_str_Y_M_D_to_datetime(value) self._startEpoch = dt_datetime_to_epoch(self._startDT)
def fset(self, value): if type(value) is not datetime.datetime: raise TypeError self._endDT = value self._endEpoch = dt_datetime_to_epoch(value) self._endYMD = strftime(self._endDT, '%Y-%m-%d')