Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Temps en base 20 min pour 1 jour
- function time2str( nTime )
- if not nTime then nTime = os.clock() end
- local ts = math.floor( nTime )
- local m = math.floor( ts / 60 )
- local s = ts % 60
- m = m % 20
- if m < 10 then m = "0"..m end
- if s < 10 then s = "0"..s end
- return m..":"..s
- end
Advertisement
Add Comment
Please, Sign In to add comment