def robot_description(self): r = "%s, repeating %s" % ( pprint_datetime_span(timezone.localtime(self.start), timezone.localtime(self.end())), unicode(self.rule).lower(), ) if self.repeat_until: r += " until %s" % pprint_date_span(self.repeat_until, self.repeat_until) return r
def robot_description(self): r = "%s, repeating %s" % ( pprint_datetime_span(self.event_start, self.event_end), unicode(self.rule).lower(), ) if self.repeat_until: r += " until %s" % pprint_date_span(self.repeat_until.date(), self.repeat_until.date()) return r
def season(self): """ Returns a string describing the first and last dates of this event. """ if self.start and self.end: first = self.start last = self.end return pprint_date_span(first, last) return None
def robot_description(self): r = "%s, repeating %s" % ( pprint_datetime_span(localtime(self.start), localtime(self.end())), unicode(self.rule).lower(), ) if self.repeat_until: r += " until %s" % pprint_date_span(self.repeat_until, self.repeat_until) return r
def season(self): """ Returns a string describing the first and last dates of this event. """ if self.season_description: return self.season_description o = self.opening_occurrence() c = self.closing_occurrence() if o and c: first = o.start.date() last = c.start.date() return pprint_date_span(first, last) return None