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