Jmeter - get current date and time

前端 未结 6 1841
情歌与酒
情歌与酒 2020-12-14 07:00

I want to get the current date and time as example date: 11/10/2014 and time 8:30 am or 6:00 pm and pass it as parameters to my Jmeter test. Can some help me do this.

6条回答
  •  暖寄归人
    2020-12-14 07:11

    Actually, for UTC I used Z instead of X, e.g.

    ${__time(yyyy-MM-dd'T'hh:mm:ssZ)}
    

    which gave me:

    2017-09-14T09:24:54-0400
    

提交回复
热议问题