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 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
Esempio n. 4
0
    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
Esempio n. 5
0
    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
Esempio n. 6
0
    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
Esempio n. 7
0
    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
Esempio n. 8
0
    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