os.time([table])
-- create a lua table with a time in it.
-- in this case 29 December 1995 at 8:47pm
local
t = {}
t.year = 1995
t.month = 12
t.day = 29
t.hour = 20
t.min = 47
t.sec = 0
-- this could be expressed all in one line:
local
t2 = {year = 1995,month = 12,day = 29,hour = 20,min = 47,sec = 0}
-- output the current time to the debug console
fibaro:debug
(
os.time
())
-- output the time in the table to the debug console
fibaro:debug
(
os.time
(t))
Lua reference manual 5.2: os.time