User Tools

Site Tools


Miscellaneous functions

GetTime

The GetTime function returns table with local time information. sec field contains seconds in Unixtime format. ns field contains nanoseconds passed since begin of current second.

This function is available since WebHMI version 3.6

Example:

function main (userId)
    local time = GetTime();
    INFO("Seconds: " .. time.sec);
    INFO("Nanoseconds:" .. time.ns);
end

Page Tools