Time format question
Hello guys, can some one show me how to edit this code, for showing the cast time in seconds/minutes/hours etc. ?
For example 1 | 10.0 to 1s | 10s Lua Code:
|
duration is a float, it gives you seconds and milliseconds. If you want to show minutes, hours, days, etc., you'll need to do some maths. For example, math.floor(duration / 60) will give you minutes, math.floor(duration / 3600) will result in hours, and so on.
|
Quote:
Thx for your response! Have already did it :) |
All times are GMT -6. The time now is 06:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI