title: Java format milliseconds to uu:mm:ss
body: <p>I have the following problem and I couldn't find the best solution for it yet.
  Lets say I have an integer with the following value:</p>
  
  <p><code>int miliseconds = 65111;</code></p>
  
  <p>I want to print it to an stream using the <code>printf()</code> function. Is there a way I can do the following:</p>
  
  <p><code>printf("Time: %uu:mm:ssT", miliseconds");</code></p>
  
  <p>so it will return: </p>
  
  <p><code>Time: 00:01:05</code></p>
  
  <p>Here I just made up the %uu:mm:ssT part, but is there a way to do this. </p>
  
  <p>Also, do you know a website where I can find all the formatting options, so I can look it up myself next time.</p>