TimeNow
TimeNow
Ritorna l'ora corrente come valore compreso tra 0.0 (00.00) e 1.0 (24.00).
Esempio 1. Esempio TimeNow
-- TimeNow: returns fraction of current day (0.0 to ~1.0)
local tn = TimeNow()
print("TimeNow() = " .. tn)
assert(tn >= 0 and tn < 1)