def METHOD_NAME(time, duration):
    """Set's the maintenance window.
    time
        The format of time is the same as described in
        systemd.time(7).
    duration
         The format of duration is "[XXh][YYm]".
    CLI Example:
    .. code-block:: bash
        salt microos rebootmgr set_window time="Thu,Fri 2020-*-1,5 11:12:13" duration=1h
    """
    cmd = ["rebootmgrctl", "set-window", time, duration]
    return _cmd(cmd)