'Creates a crontab line that executes the command one minute after the
"date" parameter.
:return: A tuple with the new line to add to the crontab, and the time
that it will take to run the command.'

def _createCronLine(self, remoteDate, command_to_exec):

    res_line = ''
    try:
        (day_number, month, hour, week_day) = remoteDate.split('-')
    except:
        raise BaseFrameworkException('The    date    command    of    the    remote    server    returned    an    unknown    format.')
    else:
        (hour, minute, sec) = hour.split(':')
        wait_time = None
        if (int(sec) > 57):
            delta = 2
            wait_time = (4 + 60)
        else:
            delta = 1
            wait_time = (60 - int(sec))
        minute = (int(minute) + delta)
        (hour, minute, am_pm) = self._fix_time(hour, minute)
        res_line = ('%s    %s    %s    %s    %s    %s' % (minute, hour, day_number, month, week_day, command_to_exec))
    return (res_line, wait_time)
