Skip to content

Outdated Doc about ${__time} function. #5694

Description

@asfimport

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions