title: Java jsr310: difference between dates and times
body: <p>There are a plethora of SO questions that deal with calculating the difference between two dates or two times in Java. Many answers point out the problems with the core Java Date classes, and suggest using Jodatime, but AFAIK, there are none that suggest how to do this using jsr310.</p>
  
  <p>So, are there any methods to calculate the difference between two dates or two times in jsr310?</p>
  
  <hr>
  
  <p>For reference, the following questions handle this issue:</p>
  
  <p>In core Java:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1970239/in-java-how-do-i-get-the-difference-in-seconds-between-2-dates">milliseconds between two datetimes</a></li>
  </ul>
  
  <p>In Jodatime:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/3299972/difference-in-days-between-two-dates-in-java">days betweens two dates</a></li>
  <li><a href="https://stackoverflow.com/questions/1555262/calculating-the-difference-between-two-java-date-instances">Interval between two datetimes</a></li>
  </ul>