if os.Time("*T",hour) == 20 then
print("Its Time")
end
And what timezone does this use? UTC? Or EST
if os.Time("*T",hour) == 20 then
print("Its Time")
end
And what timezone does this use? UTC? Or EST
what you actually want to do is os.date("*t", os.time()). which will return a table, and then you can index .hour on it..
for instance:
local currentDate = os.date("*t", os.time())
if(currentDate.hour == 20) then
print("it's 8 PM")
end
thanks but what timezone does this use?
unsure
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
check the wiki, it uses the UTC timezone.