Posts: 762
Threads: 157
Joined: Feb 2009
Reputation:
0
does anyone have a script to convert seconds to the format: MIN:SEC
for example: the seconds is 310 so the output would be "5:10"
Thanks for any help!
Posts: 788
Threads: 22
Joined: May 2006
Reputation:
0
This will give you minutes: total_seconds / 60
This will give you seconds: total_seconds % 60
Have a go at it.
Posts: 762
Threads: 157
Joined: Feb 2009
Reputation:
0
ok i did that but it only gives me 1 character for seconds..
like this:
14:9
14:8
14:7
14:6
14:5
14:4
14:3
14:2
14:1
14:0
and it repeats 6 times untill next minute
13:9
13:8 .....
i need it:
14:59
14:58
14:57 ... etc.... :S
EDIT: nevermid... im stupid i put % 10 instead of % 60