mIRC Home    About    Download    Register    News    Help

Print Thread
#205275 18/10/08 06:42 PM
J
Joe_Dean
Joe_Dean
J
I have a stats script that outputs a number in seconds - I'm trying to convert from seconds to minutes. So how would I add 1 minute for every 60 seconds?

Quote:
Behind Bars: You have spent 680 seconds in Jail and 320 seconds in Alcatraz. This means you have wasted 1000 seconds of your life behind bars.


I want to keep everything in seconds except for the last number (1000) and convert that into minutes.

#205276 18/10/08 06:45 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Use the $duration() identifier.

eg.
$duration(1000) would return 16mins 40secs.


Link Copied to Clipboard