title: Difference between two time intervals in JAVA
body: <p>I have two times, a start and a stop time, in the format of <code>05:00 (HH:MM)</code>. I need the difference between the two times.Suppose if start time is <strong>05:00</strong> and end time is <strong>15:20</strong>, then how do I calculate the time difference between two which will be <strong>10 Hours 20 minutes</strong>. Should I convert them into <code>datetime</code> object and use the milliseconds to get the time difference or is there any better approach to do this?</p>