mIRC Homepage
Posted By: Deep3D Uptime - 14/11/03 10:26 PM
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..
Posted By: Collective Re: Uptime - 14/11/03 10:28 PM
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.
Posted By: Deep3D Re: Uptime - 14/11/03 10:33 PM
omg, i dont ork yo use my brain right now.. so.. like.. can you just tell me the complete line? *cute eyes* grin
Posted By: Collective Re: Uptime - 14/11/03 10:33 PM
$duration($calc($ticks / 1000),2)

$duration($calc(%best.uptime / 1000),2)
Posted By: Deep3D Re: Uptime - 14/11/03 10:39 PM
thaks.. laugh
Posted By: Deep3D Re: Uptime - 14/11/03 10:45 PM
$duration($online) then? the ,2) dont work.. :P
Posted By: Collective Re: Uptime - 14/11/03 10:46 PM
Does for me.

//echo -a $duration($online,2)
Posted By: Deep3D Re: Uptime - 14/11/03 10:49 PM
lol, silly me!!! i tryed $duration($online),2)
hahaa.... im tierd... smirk
© mIRC Discussion Forums