Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toString(t)
- tT = t
- string = math.floor(tT/86400).."d "
- tT = tT - (math.floor(tT/86400)*86400)
- string = string..math.floor(tT/3600).."h "
- tT = tT - (math.floor(tT/3600)*3600)
- string = string..math.floor(tT/60).."m "
- tT = tT - (math.floor(tT/60)*60)
- string = string..math.floor(tT).."s"
- return string
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement