def component_on_date(self, date: datetime.date) -> Optional["Interval"]:
        """
        Returns the part of this interval that falls on the date given, or
        ``None`` if the interval doesn't have any part during that date.
        """
        return self.intersection(Interval.wholeday(date))
Returns the part of this interval that falls on the date given, or
        ``None`` if the interval doesn't have any part during that date.