06.05.2017, 22:17
(06.05.2017, 13:09)buuuudzik Wrote: For checking if some object was updated in the last 16 hours you can do this:
Code:last_timestamp = grp.find("1/1/1").updatetime
now = os.microtime()
if (now - last_timestamp) >= 16*60*60 then updated = true else updated = false end
Thanks,
Works like a charm!
BR,
Mr.D