Minutes and seconds from seconds

Hi

I have a video player and trying to make a time indicator of minute and seconds.

I got fairly close, however it started to count backwards :stuck_out_tongue:

Anyone got a script? Thanks

my_minutes = Math.floor(seconds/60)
my_seconds= seconds -(60*my_minutes)

string = my_minutes+"Min : "+my_seconds+“Sec”;

thanks!

my_seconds= seconds%60
as well :slight_smile: