mIRC Home    About    Download    Register    News    Help

Print Thread
#106837 04/01/05 09:01 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
How can I retrieve the value of the mIRC online timer and the value of the mIRC total connected time timer?

#106838 04/01/05 09:06 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
$online ?

#106839 04/01/05 09:17 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
It returns 2520868, is this a value in seconds?
How to convert it to a time value like 132:50:60 (hrs:mins:secs)?
With $time this value is shown as 05:15:30 which is not a value of the internal mirc online timer.

#106840 04/01/05 09:21 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Try $duration($online,3)


New username: hixxy
#106841 04/01/05 09:25 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx, works great!
Now how can I display the time I'm currently connected?

#106842 04/01/05 09:33 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
$uptime(server,1)

Regards,


Mentality/Chris
#106843 04/01/05 09:34 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean server uptime?
$uptime(server,1)

#106844 04/01/05 09:44 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Yes indeed thanx. Last question smile :
How can I make the $duration($online,3) look like $uptime(server,1) (I mean 9hrs 40mins 58secs instead of 9:40:58

#106845 04/01/05 09:46 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
$duration($online,1)

I suggest reading /help $duration - $uptime/$online are in there too.

Regards,


Mentality/Chris
#106846 04/01/05 09:47 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx
I'm sorry for not reading the help file first frown

#106847 04/01/05 09:55 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
My sincere apologies, I didn't know which N you'd want I just assumed 3rd format.


Link Copied to Clipboard