This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script with last updated event
#2
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
Reply


Messages In This Thread
Script with last updated event - by Mr.D - 06.05.2017, 12:03
RE: Script with last updated event - by buuuudzik - 06.05.2017, 13:09
RE: Script with last updated event - by Mr.D - 06.05.2017, 22:17
RE: Script with last updated event - by Mr.D - 11.05.2017, 19:57
RE: Script with last updated event - by Jørn - 11.05.2017, 20:56
RE: Script with last updated event - by Mr.D - 13.05.2017, 20:56
RE: Script with last updated event - by Mr.D - 16.05.2017, 11:34
RE: Script with last updated event - by Mr.D - 18.05.2017, 07:40

Forum Jump: