If a variable is not assigned to a placeholder with a format definition, then the system time is output.
Syntax |
Example |
Description |
Example in Visualization |
---|---|---|---|
|
|
Output of the current system time Requirement: No variable is specified below the “Text variable” property. |
“Text” property: “Text variable” property: blank Output: |
|
|
Optional Output of the offset of the local system time as universal time (UTC) |
“Text” property: Depending on the UTC variable
|
You can programmatically switch the local time zone of the system time to universal time (UTC).
When the variable VisuElems.Visu_DateTime.DisplayUTC
is set to TRUE
, the system time is displayed as universal time (UTC). By default, the variable VisuElems.Visu_DateTime.DisplayUTC
is set to FALSE
so that the system time is displayed in the local time zone.
For the display of date and time values, you can extend the respective format string
with the time zone code Z
. For an output in local system time, the offset is then displayed in universal time
(UTC). For example, dd:MM:yyyy HH:mm:ss:ms:Z
outputs 01.08.2021 12:00:00:001:+02:00
. When universal time (UTC) is displayed, the UTC code is also displayed. 01.08.2021 10:00:00:001:Z