Project

General

Profile

$uptime » History » Version 3

Per Amundsen, 02/26/2017 06:57 PM

1 1 Per Amundsen
_Added in 1.9.6_
2
3
*$uptime*
4
5 2 Per Amundsen
Returns connection time in seconds for the associated server connection.
6 1 Per Amundsen
7
_Added in 1.9.2_
8
9
*$uptime(mirc|AdiIRC|server|system, N)*
10
11
Returns uptime in milliseconds for the specified item.
12
13
*Parameters*
14
15
mirc|AdiIRC|server|system - Item to retrieve uptime for.
16 3 Per Amundsen
N - Optional, if N = 1 returns same format as [[$duration]], if N = 2 returns same format as [[$duration]] but without seconds, and if N = 3 returns seconds instead of milliseconds.
17 1 Per Amundsen
18
*Example*
19
20
<pre>
21 3 Per Amundsen
; Current connection uptime.
22 1 Per Amundsen
//echo -ag Server has been connected $uptime seconds
23
24 3 Per Amundsen
; AdiIRC uptime.
25 1 Per Amundsen
//echo -ag AdiIRC has been connected $uptime(AdiIRC, 1)
26
</pre>