title: What is the simplest way to calculate the difference of two time stamps in java?
body: <p>I have a table (array) that has the current time and the departure time for individual people.</p>
  
  <p>Current Time = CT and Departure Time = DT</p>
  
  <p>Person 1 - CT: 12:00 PM | DT: 2:00 PM
  Person 2 - CT: 9:30 AM | DT: 10:30 AM
  Person 3 - CT: 1:00 PM | DT: 2:15 PM
  Person 4 - CT: 8:00 AM | DT: 3:45 PM</p>
  
  <p>I want to calculate the difference between each time in minutes.</p>
  
  <hr>
  
  <p>After I know how to calculate the difference between two times in minutes, I have to figure how to calculate the layover time. Meaning, I have to figure out the time period between flights.</p>
  
  <p>Departure Time = DT and Arrival Time = AT
  Person 5 is very busy today and has to do a few different things in different places.</p>
  
  <p>DT: 11:30 AM | AT: 12:15 PM (LAYOVER TIME PERIOD) DT: 1:15 PM | AT: 3:45 PM (LAYOVER TIME PERIOD) DT: 4:00 PM | AT: 6:45 PM (LAYOVER TIME PERIOD) DT: 10:15 PM | AT: 11:00 PM</p>
  
  <p>I need to find the layover time amount between each flight. How would I go about do this?</p>