If you are still looking for the answer, install MP3::Info and use:
$mp3->time_mm_ss();
Other things you can use:
total_secs()
total_secs_int()
total_mins()
leftover_secs()
leftover_msec()
See the bottom of the MP3::Tag page for details
Compare two dates with JavaScript
From an array of objects, extract value of a property as array
How do I loop through or enumerate a JavaScript object?
Is there a JavaScript equivalent of PHP’s “variable variables”?
What is the (function() { } )() construct in JavaScript?
How do I copy to the clipboard in JavaScript?
Where can I find documentation on formatting a date in JavaScript?
How do I redirect to another webpage?