mIRC Home    About    Download    Register    News    Help

Print Thread
#205275 18/10/08 06:42 PM
Joined: May 2008
Posts: 127
J
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2008
Posts: 127
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.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Use the $duration() identifier.

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


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard