CONVERTTOLOCALTIME
PROGRAM CONVERTTOLOCALTIME_DEMO
VAR
TIME_OUT: DT;
END_VAR
TIME_OUT:=CONVERTTOLOCALTIME(T:=GETUTCTIME());
END_PROGRAM
The block converts UTC date and time to local date and time, using the time zone settings.
Input | Type | Description |
---|---|---|
T | DT | Input UTC date and time |
Output | Type | Description |
---|---|---|
=> | DT | Output, local date and time |