10.06.2021, 09:20
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
now = os.date('*t')
time = {hour = now.hour,}
if time.hour > 2 and time.hour < 7 then *do stuff*
else *do stuff*
end