Converting Time
#1

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!
Reply
#2

*bump* anyone? please?
Reply
#3

This will give you minutes: total_seconds / 60
This will give you seconds: total_seconds % 60

Have a go at it.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)