====== Convert to UTC time ====== {{:en:mervis-ide:35-help:converttoutctime.png}} ===== Function name ===== CONVERTTOUTCTIME ===== ST call ===== PROGRAM CONVERTTOUTCTIME_DEMO VAR TIME_OUT: DT; END_VAR TIME_OUT:=CONVERTTOUTCTIME(T:=GETLOCALTIME()); END_PROGRAM ===== Description ===== The block converts local time and date (according to time zone) to UTC. ===== Inputs ===== |Input|Type|Description | |T |DT |Local date and time| ===== Outputs ===== |Output|Type|Description | |=> |DT |UTC date and time| ===== Application example ===== {{:en:mervis-ide:35-help:converttoutctime_example.png}}