(self, end_time)
Add an end time to the range.

        Args:
            end_time (str): date string using the format '%Y-%m-%dT%H:%M:%s'

        Raises:
            ValueError: if the date format is incorrectly formatted.
Add an end time to the range.
Add an end time to the range .
def add_end_time(self, end_time):
        """Add an end time to the range.

        Args:
            end_time (str): date string using the format '%Y-%m-%dT%H:%M:%s'

        Raises:
            ValueError: if the date format is incorrectly formatted.
        """
        try:
            dt = datetime.datetime.strptime(end_time, self._DATE_FORMAT)
        except ValueError as exc:
            logger.error(
                'Unable to add date chip, wrong date format', exc_info=True)
            raise ValueError('Wrong date format') from exc
        self._end_date = dt
def add_end_time ( self , end_time ) : try : dt = datetime . datetime . strptime ( end_time , self . _DATE_FORMAT ) except ValueError as exc : logger . error ( 'Unable to add date chip, wrong date format' , exc_info = True ) raise ValueError ( 'Wrong date format' ) from exc self . _end_date = dt