def METHOD_NAME(name, timespec, tag=None, user=None, job=None, unique_tag=False):
    """
    .. versionchanged:: 2017.7.0
    Add a job to queue.
    job : string
        Command to run.
    timespec : string
        The 'timespec' follows the format documented in the at(1) manpage.
    tag : string
        Make a tag for the job.
    user : string
        The user to run the at job
        .. versionadded:: 2014.1.4
    unique_tag : boolean
        If set to True job will not be added if a job with the tag exists.
        .. versionadded:: 2017.7.0
    .. code-block:: yaml
        rose:
          at.present:
            - job: 'echo "I love saltstack" > love'
            - timespec: '9:09 11/09/13'
            - tag: love
            - user: jam
    """
    ret = {"name": name, "changes": {}, "result": True, "comment": ""}
    # if job is missing, use name
    if not job:
        job = name
    # quick return on test=True
    if __opts__["test"]:
        ret["result"] = None
        ret["comment"] = "job {} added and will run on {}".format(
            job,
            timespec,
        )
        return ret
    # quick return if unique_tag and job exists
    if unique_tag:
        if not tag:
            ret["result"] = False
            ret["comment"] = "no tag provided and unique_tag is set to True"
            return ret
        elif len(__salt__["at.jobcheck"](tag=tag)["jobs"]) > 0:
            ret["comment"] = "atleast one job with tag {tag} exists.".format(tag=tag)
            return ret
    # create job
    if user:
        luser = __salt__["user.info"](user)
        if not luser:
            ret["result"] = False
            ret["comment"] = "user {} does not exists".format(user)
            return ret
        ret["comment"] = "job {} added and will run as {} on {}".format(
            job,
            user,
            timespec,
        )
        res = __salt__["at.at"](
            timespec,
            job,
            tag=tag,
            runas=user,
        )
    else:
        ret["comment"] = "job {} added and will run on {}".format(
            job,
            timespec,
        )
        res = __salt__["at.at"](
            timespec,
            job,
            tag=tag,
        )
    # set ret['changes']
    if "jobs" in res and len(res["jobs"]) > 0:
        ret["changes"] = res["jobs"][0]
    if "error" in res:
        ret["result"] = False
        ret["comment"] = res["error"]
    return ret