mIRC Home    About    Download    Register    News    Help

Print Thread
#107431 10/01/05 07:53 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
i got the duration to show up with:
Duration: $duration($calc(%away.returnat - %away.leftat))

but instead of it showing like 2 mins 54 secs or 1 min 45 sec i want it to remove the mins min secs sec and put a : between the 2 numbers

thanx 4 help


k1ll3rz
#107432 10/01/05 08:14 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Duration: $duration($calc(%away.returnat - %away.leftat),3)

Duration: $duration($awaytime,3)

#107433 10/01/05 08:22 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
$gettok($duration($calc(%away.returnat - %away.leftat),,3),2-,58) 


Returns in format 06:00.

Code:
$duration($calc(%away.returnat - %away.leftat),3)


Returns in format 00:06:00.

Last edited by SladeKraven; 10/01/05 08:23 AM.
#107434 10/01/05 08:51 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
thanx. both codes werked.


k1ll3rz
#107435 10/01/05 09:07 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. grin


Link Copied to Clipboard