2
I have this code that calculates in 1 second in 1 second between a certain time and then insert into a table. Instead of calculating every 1 second, how can I calculate, for example, every 5 seconds?
for y = horaInicial, horaFinal-1 do
hora = tostring(math.floor(y / (3600)))
minuto = tostring(math.floor((y - hora * (3600)) / (60)))
segundo = tostring(math.floor(y - hora * (3600) - minuto * (60)))
end
Explain better what this "calculate in 5 seconds".
– Maniero
This code inserts it into a 1-in-1-second table between the start time and the end time. I wanted you to calculate with a certain secondary, as for example 5.
– akm
Full coded entry: http://answall.com/questions/49812/insert
– akm