def _inside_interval(start, end, date):
    """Checks if the given date is inside the interval or not"

    :param start: the start date of the interval
    :param end: the end date of the interval
    :param date: the date to check
    :returns: True if it is inside, False otherwise
    """
    return (date >= start and date <= end)