mIRC Home    About    Download    Register    News    Help

Print Thread
Uptime #60336 14/11/03 10:26 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
like.. when... i have a uptime script..

$duration($calc($ticks / 1000))

$duration($calc(%best.uptime / 1000))

that reply 1hr 39mins 48secs

how to 1hr 39min without the seconds.. :tongue:'

i dont remeber that..

Re: Uptime #60337 14/11/03 10:28 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
From the mIRC helpfile:
$duration(seconds,N)

Returns the specified number of seconds in a week/day/hour/minute/second format.

The N parameter is optional. If N = 2, the result does not include the seconds value. If N = 3, the result is in h:m:s format.

Re: Uptime #60338 14/11/03 10:33 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
omg, i dont ork yo use my brain right now.. so.. like.. can you just tell me the complete line? *cute eyes* grin

Re: Uptime #60339 14/11/03 10:33 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$duration($calc($ticks / 1000),2)

$duration($calc(%best.uptime / 1000),2)

Re: Uptime #60340 14/11/03 10:39 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
thaks.. laugh

Re: Uptime #60341 14/11/03 10:45 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
$duration($online) then? the ,2) dont work.. :P

Re: Uptime #60342 14/11/03 10:46 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Does for me.

//echo -a $duration($online,2)

Re: Uptime #60343 14/11/03 10:49 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
lol, silly me!!! i tryed $duration($online),2)
hahaa.... im tierd... smirk