https://bz.apache.org/bugzilla/show_bug.cgi?id=66232

            Bug ID: 66232
           Summary: Outdated Doc about ${__time} function.
           Product: JMeter
           Version: 5.5
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.5

Created attachment 38371
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38371&action=edit
The code comparison between versions about the __time function.

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to