$duration » History » Revision 9
Revision 8 (Per Amundsen, 02/16/2023 09:29 PM) → Revision 9/10 (Per Amundsen, 05/10/2023 02:00 PM)
_Added in 1.8.10_ *$duration* - _*AdiIRC only*._ 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* table(ktable). |*Parameter*|*Description*| | 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* <pre> ; Print current date using $ctime. //echo -ag $duration($ctime) ; Do a reverse duration. //echo -ag $duration(42wks 5days 11hrs 53mins 43secs) </pre>