How can I format time (seconds to minutes + seconds)?

Hey, I would like to make a way to format time in my game.
Currently, a game is using a timer, with a 3 minute maximum timer selection.
Instead of 132s is there a way to make it 1:12?

string.format("%i:%02i", seconds / 60, seconds % 60)
10 Likes

Thank you very much! I appreciate that, sure my players will too. :smile: