title: Milliseconds to readable format?
body: <p>I want to convert milliseconds to a human readable string.</p>
  
  <p>So it looks something like 1:59:23 (1 hour, 59 minutes, 23 seconds).</p>
  
  <p>I've tried this:</p>
  
  <pre><code>    int hours = (metaData["duration"].toInt()/(1000 * 60 * 60));
      int mins = (metaData["duration"].toInt()/(1000 * 60));
      int seconds = (metaData["duration"].toInt()/1000);
  </code></pre>
  
  <p>But this just gives out the total, ie, it will say the total amount of mins and total amount of seconds, it does not take in to account that 60 seconds becomes a minute, so do not include it in the seconds count.</p>
  
  <p>Does anyone have a way to do this?</p>
  
  <p>Thanks</p>