title: Best way to store time in java, in format of HH:MM
body: <p>After doing my research I wasn't able to find a method or data type that should be used for variable in order to store time in format of HH:MM, I did find methods to get this from a string like "14:15:10", but I think this is not the best way, as I'll need to add or subtract from time. I tried doing this as a <code>double</code>, but ran into following issue, when you have a time like <code>05.45</code> stored and add 0.15 (or 15 minutes) to it, the result is <code>05.60</code> where as with HH:MM format you'd expect it to be 06.00.</p>
  
  <p>I'm looked through java documentation and still am, but can't seem to find any way to achieve this, closest I got to is <code>date</code> format like <code>dd/mm/yyyy hh:mm:ss</code></p>