get system time
Return the current local time of the test machine.
Name | Description | Type | Modifier |
---|---|---|---|
format | (Optional) Specifies the time format to be returned. Allowable values:
| Value Set | 12, 24 |
hour | Variable to hold returned hour portion of time. | String | None |
minute | Variable to hold returned minute portion of time. | String | None |
second | Variable to hold returned seconds portion of time. | String | None |
AM/PM | Variable to hold AM or PM indicator (valid only if the format argument is set to 12). Possible returned values:
| String | None |
The current local time.
This action may be used within the following project items: test modules and user-defined actions.
format hour minute second AM/PM
get system time 12 h1 m1 s1 d
get system time 24 h2 m2 s2
- If the variables in arguments hour, minute, second or AM/PM have not been declared, the action creates them as globals.
- For each of hour, minute, second and AM/PM, if the argument is left empty, a variable with the same name as the argument header is created to hold the return value.
- This action supports the <ignore> modifier. If the string
<ignore>
is present as the value of any of the arguments, or any argument contains an expression that evaluates to<ignore>
, the action is skipped during execution.