$uptime » History » Version 6
Per Amundsen, 02/23/2023 07:53 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 | 4 | Per Amundsen | --- |
8 | |||
9 | 1 | Per Amundsen | _Added in 1.9.2_ |
10 | |||
11 | 5 | Per Amundsen | *$uptime(mirc|AdiIRC|server|system[, N])* |
12 | 1 | Per Amundsen | |
13 | Returns uptime in milliseconds for the specified item. |
||
14 | |||
15 | *Parameters* |
||
16 | |||
17 | 6 | Per Amundsen | table(ktable). |
18 | |*Parameter*|*Description*| |
||
19 | | mirc<notextile>|</notextile>AdiIRC<notextile>|</notextile>server<notextile>|</notextile>system | Item to retrieve uptime for. | |
||
20 | | 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. | |
||
21 | 1 | Per Amundsen | |
22 | *Example* |
||
23 | |||
24 | <pre> |
||
25 | 3 | Per Amundsen | ; Current connection uptime. |
26 | 1 | Per Amundsen | //echo -ag Server has been connected $uptime seconds |
27 | |||
28 | 3 | Per Amundsen | ; AdiIRC uptime. |
29 | 1 | Per Amundsen | //echo -ag AdiIRC has been connected $uptime(AdiIRC, 1) |
30 | </pre> |