Project

General

Profile

$uptime » History » Revision 3

Revision 2 (Per Amundsen, 03/16/2015 08:47 AM) → Revision 3/6 (Per Amundsen, 02/26/2017 06:57 PM)

_Added in 1.9.6_ 

 *$uptime* 

 Returns connection time in seconds for the associated server connection. 

 _Added in 1.9.2_ 

 *$uptime(mirc|AdiIRC|server|system, N)* 

 Returns uptime in milliseconds for the specified item. 

 *Parameters* 

 mirc|AdiIRC|server|system - Item to retrieve uptime for. 
 N - Optional, if N = 1 returns same format as [[$duration]], $duration(), if N = 2 returns same format as [[$duration]] $duration() but without seconds, and if N = 3 returns seconds instead of milliseconds. 

 *Example* 

 <pre> 
 ; Current connection uptime. uptime 
 //echo -ag Server has been connected $uptime seconds 

 ; AdiIRC uptime. uptime 
 //echo -ag AdiIRC has been connected $uptime(AdiIRC, 1) 
 </pre>