def relative_to(self, day, full=False):
        """
        returns a short description of the event, with start and end
        relative to `day`

        print information in regards to this day, if the event starts and ends
        on this day, the start and end time will be given (only the description
        for all day events), otherwise arrows will indicate if the events
        started before `day` and/or lasts longer.

        :param day: the date the description is relative to
        :type day: datetime.date
        :return: compact description of Event
        :rtype: unicode()
        """
        if isinstance(day, datetime) or not isinstance(day, date):
            raise ValueError('`this_date` is of type `{}`, should be '
                             '`datetime.date`'.format(type(day)))

        day_start = self._locale['local_timezone'].localize(datetime.combine(day, time.min))
        day_end = self._locale['local_timezone'].localize(datetime.combine(day, time.max))

        tostr = '-'
        if self.start_local < day_start:
            startstr = self.symbol_strings['right_arrow'] + ' '
            tostr = ''
        else:
            startstr = self.start_local.strftime(self._locale['timeformat'])

        start_of_next_day = day_start + timedelta(days=1)
        if (self.end_local == start_of_next_day and self._locale['timeformat'] == '%H:%M'):
            endstr = '24:00'
        elif self.end_local > day_end:
            endstr = self.symbol_strings['right_arrow'] + ' '
            tostr = ''
        else:
            endstr = self.end_local.strftime(self._locale['timeformat'])

        body = self.summary
        if full:
            if self.description.strip() != '':
                body += ', ' + self.description.strip()
            if self.location.strip() != '':
                body += ', ' + self.location.strip()

        comps = [startstr + tostr + endstr + ':', body, self._recur_str]
        return ' '.join(filter(bool, comps))
dataset/ETHPy150Open pimutils/khal/khal/khalendar/event.py/Event.relative_to/original