19.11.2015, 07:23
I guess you need something like this in your script:
Code:
date = os.date('*t')
hour = date.hour
-- morning between 6:00 and 11::59
if 6 <= hour and hour <= 11 then
domorningstuff()
-- other time
else
dootherstuff()
end