title: How to format time intervals in Java?
body: <p>I create J2SE application and this application needs to format two times in milliseconds into a string that represents the interval between this two times.</p>
  
  <p><code>long time1 = 1334331041677L; //Fri Apr 13 17:30:41 CEST 2012<br/>
  long time2 = time1+1000*60*2; //Fri Apr 13 17:32:41 CEST 2012</code></p>
  
  <p>and I would like to get something like "00:02:00". This would be simple, but I need to format interval which is long from few seconds up to several years - so the library should handle it. Ideally is if this library could format the interval according to the habbits of the country (if any).</p>
  
  <p>I have searched throught the questions and answers and solution for me could be Jodatime or Lang library from Apache Commons. Could you provide me some recommendation which library from these solves my requirements in better way? Thank you in advance.</p>