====== Convert to local time ====== {{:en:mervis-ide:35-help:converttolocaltime.png}} ===== Function name ===== CONVERTTOLOCALTIME ===== ST call ===== PROGRAM CONVERTTOLOCALTIME_DEMO VAR TIME_OUT: DT; END_VAR TIME_OUT:=CONVERTTOLOCALTIME(T:=GETUTCTIME()); END_PROGRAM ===== Description ===== The block converts UTC date and time to local date and time, using the time zone settings. ===== Inputs ===== |Input|Type|Description | |T |DT |Input UTC date and time| ===== Outputs ===== |Output|Type|Description | |=> |DT |Output, local date and time| ===== Application example ===== {{:en:mervis-ide:35-help:converttolocaltime_example.png}}