如何在 jmeter 中获取 GMT 时区当前时间

How can I get GMT timezone current time in jmeter

我想将 GMT +7 时间输入到 jmeter 中。我试过跟随,但似乎不是格林威治标准时间。

    ${__time(dd/MM/yyyy,)}
    ${__time(hh:mm a,)}
    ${__time(dd-mmm-yyyy HHmmss)}
    ${__javaScript(new Date().getTime();)}

根据 SimpleDateFormat class 文档

因此您可以根据需要修改JMeter 的__time() function 模式。示例:

有关 __time() 和其他 JMeter 函数的更多详细信息,请参阅 How to Use JMeter Functions post。