Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function normalTimeFormat(len)
- local len = math.abs(math.floor(len))
- local h = math.floor(len / 60 / 60)
- local m = math.floor(len / 60 - h * 60)
- local s = math.floor(len - m * 60 - h * 60 * 60)
- return string.format("%.2d:%.2d:%.2d", h, m, s)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement