title: How to calculate the number of days in a period?
body: <p>For the following <code>Period</code> calculation:</p>
  
  <pre><code>Period.between(LocalDate.of(2015, 8, 1), LocalDate.of(2015, 9, 2))
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>P1M1D
  </code></pre>
  
  <p>This is equivalent to 31 days + 1 day = 32 days.</p>
  
  <p>For this <code>Period</code>:</p>
  
  <pre><code>Period.between(LocalDate.of(2015, 8, 1), LocalDate.of(2015, 10, 2))
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>P2M1D
  </code></pre>
  
  <p>This is equivalent to: 31 days (in August) + 30 days (in September) + 1 (in October) = 62 days</p>
  
  <p>Is there a method in the <code>java.time</code> package which will give the number of days in a <code>Period</code>? I can't find one. Not sure if I have overlooked anything or if it is just plain not there.</p>