User Tools

Site Tools


This is an old revision of the document!


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 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