title: Date conversion - seconds to hour/minutes/seconds
body: <p>considering that each shipment takes two minutes and I have 500 users to send, how to calculate the estimated time?</p>
  
  <p>I tried this:</p>
  
  <pre><code>var seconds = 120; //2minutes
  var users = 500;
  int t = 0;
  int i = 0;
  
  while(i &lt;= users)
  {
   i++;
  t += seconds;
  }
  </code></pre>
  
  <p>how I convert <code>t</code> to something like: <code>xxx</code> hours and <code>yyy</code> minutes and <code>zzz</code> seconds?</p>
  
  <p>thanks in advance.</p>