Project

General

Profile

Actions

$duration » History » Revision 6

« Previous | Revision 6/10 (diff) | Next »
Per Amundsen, 12/25/2018 07:27 AM


Added in 1.8.10

$duration

Returns the duration of the currently playing song in milliseconds.

AdiIRC only.
Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed.


$duration(seconds,[N])

Returns the specified number of seconds in a week/day/hour/minute/second format.

See also $ctime, $asctime, $gmt.

Parameters

seconds - Number of seconds or a $duration value to convert back into seconds.
N - If N = 2, the result does not include the seconds value. If N = 3, the result is in hh:nn:ss format.

Example

; Print current date using $ctime.
//echo -ag $duration($ctime)

; Do a reverse duration.
//echo -ag $duration(42wks 5days 11hrs 53mins 43secs)

Updated by Per Amundsen over 5 years ago · 6 revisions

Also available in: PDF HTML TXT