(self)
return ' '.join(time)
Parse every and at into cron time syntax::

            # * * * * *  command to execute
            # ┬ ┬ ┬ ┬ ┬
            # │ │ │ │ │
            # │ │ │ │ │
            # │ │ │ │ └─── day of week (0 - 7) (0 to 6 are Sunday to Saturday)
            # │ │ │ └───── month (1 - 12)
            # │ │ └─────── day of month (1 - 31)
            # │ └───────── hour (0 - 23)
            # └─────────── minute (0 - 59)
Parse every and at into cron time syntax::
Parse every and at into cron time syntax ::
def parse_time(self):
        """Parse every and at into cron time syntax::

            # * * * * *  command to execute
            # ┬ ┬ ┬ ┬ ┬
            # │ │ │ │ │
            # │ │ │ │ │
            # │ │ │ │ └─── day of week (0 - 7) (0 to 6 are Sunday to Saturday)
            # │ │ │ └───── month (1 - 12)
            # │ │ └─────── day of month (1 - 31)
            # │ └───────── hour (0 - 23)
            # └─────────── minute (0 - 59)

        """
        every_type, every, ats = self.validate_time()
        time = ['*'] * 5

        if every_type == MINUTE:
            frequency = get_frequency(every)
            time[0] = self.produce_frequency_time(frequency, 59)
        elif every_type == HOUR:
            frequency = get_frequency(every)
            time[0] = ats.get(MINUTE, '0')
            time[1] = self.produce_frequency_time(frequency, 23)
        elif every_type == DAY:
            frequency = get_frequency(every)
            time[0] = ats.get(MINUTE, '0')
            time[1] = ats.get(HOUR, '0')
            time[2] = self.produce_frequency_time(frequency, 31, 1)
        elif every_type == MONTH:
            time[0] = ats.get(MINUTE, '0')
            time[1] = ats.get(HOUR, '0')
            time[2] = ats.get(DAY, '1')
            time[3] = self.parse_month(every)
            time[4] = ats.get(WEEK, '*')
        else:
            time[0] = ats.get(MINUTE, '0')
            time[1] = ats.get(HOUR, '0')
            time[4] = self.parse_week(every)

        return ' '.join(time)
def parse_time ( self ) : every_type , every , ats = self . validate_time ( ) time = [ '*' ] * 5 if every_type == MINUTE : frequency = get_frequency ( every ) time [ 0 ] = self . produce_frequency_time ( frequency , 59 ) elif every_type == HOUR : frequency = get_frequency ( every ) time [ 0 ] = ats . get ( MINUTE , '0' ) time [ 1 ] = self . produce_frequency_time ( frequency , 23 ) elif every_type == DAY : frequency = get_frequency ( every ) time [ 0 ] = ats . get ( MINUTE , '0' ) time [ 1 ] = ats . get ( HOUR , '0' ) time [ 2 ] = self . produce_frequency_time ( frequency , 31 , 1 ) elif every_type == MONTH : time [ 0 ] = ats . get ( MINUTE , '0' ) time [ 1 ] = ats . get ( HOUR , '0' ) time [ 2 ] = ats . get ( DAY , '1' ) time [ 3 ] = self . parse_month ( every ) time [ 4 ] = ats . get ( WEEK , '*' ) else : time [ 0 ] = ats . get ( MINUTE , '0' ) time [ 1 ] = ats . get ( HOUR , '0' ) time [ 4 ] = self . parse_week ( every ) return ' ' . join ( time )