title: Cannot convert second to minute format
body: <p>I have a script to call Youtube video duration, but it's formatted in seconds. Now, I want to change it to minutes. How can I do it with this script? </p>
  
  <pre><code>function youtubeFeedCallback(json){
    document.write(json["data"]["duration"]);
  }
  
  var stimer = "&lt;script src=\"http://gdata.youtube.com/feeds/api/videos/"+vidid+"?v=2&amp;alt=jsonc&amp;callback=youtubeFeedCallback&amp;prettyprint=true\"&gt;&lt;\/script&gt;";
  document.write('&lt;div class="time"&gt;'+ stimer +'&lt;/div&gt;');
  </code></pre>
  
  <p><strong>For example:</strong> </p>
  
  <p>Time duration: 300 s</p>
  
  <p>After conversion: 5 min.</p>
  
  <p>Thanks for your help.</p>