jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Outdated Doc about ${__time} function.

Open asfimport opened this issue 3 years ago • 2 comments

wangzhen (Bug 66232): The latest document about ${__time()} function (https://jmeter.apache.org/usermanual/functions.html#__time) said that "The format to be passed to SimpleDateFormat. ", but as we can see in the code of version 5.5, it's using DateTimeFormatter now (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html).

As a result, in version before 5.5 we can use ${__time(u)} to get "day of week" in number. But in version 5.5, we should use ${__time(e)} instead.

The document should be updated to let user know the right time format.

Created attachment code_about_time_fmt.png: The code comparison between versions about the __time function.

The code comparison between versions about the __time function.

Severity: normal OS: All

asfimport avatar Aug 22 '22 03:08 asfimport

@vlsi (migrated from Bugzilla): Should we rollback the change for backwardcompatibility then?

asfimport avatar Aug 22 '22 05:08 asfimport

wangzhen (migrated from Bugzilla): (In reply to Vladimir Sitnikov from comment 1)

Should we rollback the change for backwardcompatibility then?

I think it depends on the reason of this change. If it aims at solving some other issues, the document should be updated.

If not, a rollback would be great.

asfimport avatar Aug 22 '22 06:08 asfimport