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.

time range verification
#2
Here's an exerpt where I'm checking if the time is between 0200 and 0700 hours, you can modify this to do what you need. 

now = os.date('*t')
time = {hour = now.hour,}

if time.hour > 2 and time.hour < 7 then *do stuff*
else  *do stuff*
end
Reply


Messages In This Thread
time range verification - by Frank68 - 10.06.2021, 09:09
RE: time range verification - by Seijboldt - 10.06.2021, 09:20
RE: time range verification - by admin - 10.06.2021, 09:27
RE: time range verification - by Frank68 - 10.06.2021, 09:53

Forum Jump: