SecondsToTime
Turns seconds into readable time
Note that this function returns the result in English, therefore it is not used on the client side. In order to transform seconds into readable string on the client side, please use TimeRemaining instead.
Arguments
Label
Explained
Type
Example
seconds
number
120
Example results
print(Math.SecondsToTime(46)) -- 46 seconds
print(Math.SecondsToTime(1)) -- 1 second
print(Math.SecondsToTime(121)) -- 2 minutes, 1 second
print(Math.SecondsToTime(3660)) -- 1 hour, 1 minute
print(Math.SecondsToTime(3600)) -- 1 hourLast updated