(self)
return every_type, every, ats
Validate every and at value.

        every can be::

            [1-60].minute [1-24].hour [1-31].day
            [1-12].month [1].year
            jan feb mar apr may jun jul aug sep oct nov dec
            sun mon tue wed thu fri sat weekday weekend
            or any fullname of month names and day of week names
            (case insensitive)

        at::

            when every is minute, can not be set
            when every is hour, can be minute.[0-59]
            when every is day of month, can be minute.[0-59], hour.[0-23]
            when every is month, can be day.[1-31], day of week,
                                 minute.[0-59], hour.[0-23]
            when every is day of week, can be minute.[0-59], hour.[0-23]

            at can also be multiple at values seperated by one space.
Validate every and at value.
Validate every and at value .
def validate_time(self):
        """Validate every and at value.

        every can be::

            [1-60].minute [1-24].hour [1-31].day
            [1-12].month [1].year
            jan feb mar apr may jun jul aug sep oct nov dec
            sun mon tue wed thu fri sat weekday weekend
            or any fullname of month names and day of week names
            (case insensitive)

        at::

            when every is minute, can not be set
            when every is hour, can be minute.[0-59]
            when every is day of month, can be minute.[0-59], hour.[0-23]
            when every is month, can be day.[1-31], day of week,
                                 minute.[0-59], hour.[0-23]
            when every is day of week, can be minute.[0-59], hour.[0-23]

            at can also be multiple at values seperated by one space.
        """
        every_type, every = self.parse_every(), self.every
        ats = self.parse_at()
        if every_type == MINUTE:
            if ats:
                raise ValidationError("at can not be set when every is"
                                      " minute related")
        elif every_type == HOUR:
            for at_type in ats:
                if at_type not in (MINUTE):
                    raise ValidationError("%s can not be set when every is"
                                          " hour related" % at_type)
        elif every_type == DAY:
            for at_type in ats:
                if at_type not in (MINUTE, HOUR):
                    raise ValidationError("%s can not be set when every is"
                                          " month day related" % at_type)
        elif every_type == MONTH:
            for at_type in ats:
                if at_type not in (MINUTE, HOUR, DAY, WEEK):
                    raise ValidationError("%s can not be set when every is"
                                          " month related" % at_type)
        elif every_type == WEEK:
            for at_type in ats:
                if at_type not in (MINUTE, HOUR):
                    raise ValidationError("%s can not be set when every is"
                                          " week day related" % at_type)

        return every_type, every, ats
def validate_time ( self ) : every_type , every = self . parse_every ( ) , self . every ats = self . parse_at ( ) if every_type == MINUTE : if ats : raise ValidationError ( "at can not be set when every is" " minute related" ) elif every_type == HOUR : for at_type in ats : if at_type not in ( MINUTE ) : raise ValidationError ( "%s can not be set when every is" " hour related" % at_type ) elif every_type == DAY : for at_type in ats : if at_type not in ( MINUTE , HOUR ) : raise ValidationError ( "%s can not be set when every is" " month day related" % at_type ) elif every_type == MONTH : for at_type in ats : if at_type not in ( MINUTE , HOUR , DAY , WEEK ) : raise ValidationError ( "%s can not be set when every is" " month related" % at_type ) elif every_type == WEEK : for at_type in ats : if at_type not in ( MINUTE , HOUR ) : raise ValidationError ( "%s can not be set when every is" " week day related" % at_type ) return every_type , every , ats