CONVERTTOUTCTIME
PROGRAM CONVERTTOUTCTIME_DEMO VAR TIME_OUT: DT; END_VAR TIME_OUT:=CONVERTTOUTCTIME(T:=GETLOCALTIME()); END_PROGRAM
The block converts local time and date (according to time zone) to UTC.
Input | Type | Description |
T | DT | Local date and time |
Output | Type | Description |
⇒ | DT | UTC date and time |