Quote:
alkahol1k, thanks for quick reply, but that can be like this format eg. 6hrs and 30mins i like with that and between hr and mins. thanks anyway


Code:
alias myuptime {
tokenise 32 $uptime(mirc,2) 
return $1 and $2
}
 


Example Usage: //echo $myuptime

Or (replacing the standard units):

Code:
  
alias myuptime {
tokenise 32 $replace($uptime(mirc,2),hrs,h,mins,m)
return $1 and $2
}


Finally, what if there are only minutes (I don;t have mIRC running to test this)?


Code:
 
alias myuptime {
tokenise 32 $replace($uptime(mirc,2),hrs,h,mins,m)
return $1 iff($2, and $2, only )
}
 




Untested - I dont use tokenise a lot, so I hope I got the command right from memory!

Cheers,

DK


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!