I have x seconds left for my timer.
I wish to print it as “23h 59m 59s”
So I do
local x = 60*60*24 - 1
print(os.date("%H hours %M minutes %S seconds", x))
--00 hours 59 minutes 59 seconds
Not only that, but assume I have 0 seconds left then it would print
print(os.date("%H hours %M minutes %S seconds", 0))
--01 hours 00 minutes 00 seconds
Whts wrong with os.date?
EDIT: To fix it I have to add 3600*23 to everything, but i still dont see why its being this annoying.