Hello guys, I have small problem with os.time and os.difftime:
print function counts from 01:00:00 (from 1 hour up.), how to make that counts time from 00:00:00?
Code:
t = os.time()
for i = 1, 20 do
wait(1000)
print(os.date("%X", os.difftime(os.time(), t)))
end
print function counts from 01:00:00 (from 1 hour up.), how to make that counts time from 00:00:00?