Project

General

Profile

$duration » History » Version 9

Per Amundsen, 05/10/2023 02:00 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3 9 Per Amundsen
*$duration* - _*AdiIRC only*._
4 1 Per Amundsen
5
Returns the duration of the currently playing song in milliseconds.
6 7 Per Amundsen
7 1 Per Amundsen
_Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed._
8 2 Per Amundsen
9 5 Per Amundsen
-----------------------------------------------------------------------------
10 2 Per Amundsen
11
*$duration(seconds,[N])*
12
13
Returns the specified number of seconds in a week/day/hour/minute/second format.
14
15 6 Per Amundsen
_See also [[$ctime]], [[$asctime]], [[$gmt]]._
16
17 2 Per Amundsen
*Parameters*
18
19 8 Per Amundsen
table(ktable).
20
|*Parameter*|*Description*|
21
| seconds | Number of seconds or a [[$duration]] value to convert back into seconds. |
22
| N | If N = 2, the result does not include the seconds value. If N = 3, the result is in hh:nn:ss format. |
23 4 Per Amundsen
24
*Example*
25
26
<pre>
27
; Print current date using $ctime.
28
//echo -ag $duration($ctime)
29
30
; Do a reverse duration.
31
//echo -ag $duration(42wks 5days 11hrs 53mins 43secs)
32
</pre>