User Tools

Site Tools

This is an old revision of the document!

Miscellaneous functions


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


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

Page Tools