title: Interval between two ZonedDateTime
body: <p>How to calculate the full difference between two <code>ZonedDateTime</code> instances with same <code>ZoneId</code>? In other words difference in all time unites. </p>
  
  <p>Using Java 8 and don't what to use any third party library like <code>Joda</code> or something else.</p>
  
  <pre class="lang-java prettyprint-override"><code>ZonedDateTime start = ZonedDateTime.parse("2007-05-11T15:30:00Z");
  ZonedDateTime end = ZonedDateTime.parse("2008-03-01T13:00:00Z");
  
  Duration.between(start, end); // PT7077H30M
  Period.between(start.toLocalDate(), end.toLocalDate()) // P9M19D
  </code></pre>
  
  <p>Using <code>Joda-Time</code></p>
  
  <pre class="lang-java prettyprint-override"><code>import org.joda.time.DateTime;
  import org.joda.time.Period;
  
  DateTime start = DateTime.parse("2007-05-11T15:30:00Z");
  DateTime end = DateTime.parse("2008-03-01T13:00:00Z");
  
  Period period = new Period(start, end); // P9M2W4DT21H30M
  </code></pre>
  
  <p>How get a same result using standard Date/Time API?</p>