convert time to minute and second
<p>can anyway help me to generate a function in jquery that convert time() to seconds</p>

<p>example: 1336333809 = 9 minutes and 23 seconds?</p>

<p>like this function i found but whew it's seconds to hour</p>

<pre><code>function secondsToTime(secs)
{
    var hours = Math.floor(secs / (60 * 60));

    var divisor_for_minutes = secs % (60 * 60);
    var minutes = Math.floor(divisor_for_minutes / 60);

    var divisor_for_seconds = divisor_for_minutes % 60;
    var seconds = Math.ceil(divisor_for_seconds);

    var obj = {
        "h": hours,
        "m": minutes,
        "s": seconds
    };
    return obj;
}
</code></pre>

<p>if anyway has a solution please share :D </p>
