Time display in hh:mm format

In order to display time in the hh:mm format:


1. Create the user variable time_format_variable of string type.


2. Prepare the following script:

local a 
a=string.sub(tostring(CLU->Time),1,5)
CLU->time_format_variable=a


3. For the time to be updated, the script should be run every minute (60 000ms) using the Timer Virtual Object or Calendar Virtual Ojbect.


The value of the time_format_variable feature may be displayed on the Grenton Smart Panel or in the mobile application.