def available_on_day(self, day):
        """
        Return events that are available on a given day.
        """
        if isinstance(day, datetime):
            d = day.date()
        else:
            d = day
        return self.starts_within(d, d)
Return events that are available on a given day.