Obtains a ChronoPeriod
consisting of amount of time between two dates.
Obtains a ChronoPeriod
consisting of amount of time between two dates.
The start date is included, but the end date is not.
The period is calculated using ChronoLocalDate#until(ChronoLocalDate)
.
As such, the calculation is chronology specific.
The chronology of the first date is used. The chronology of the second date is ignored, with the date being converted to the target chronology system before the calculation starts.
The result of this method can be a negative period if the end is before the start. In most cases, the positive/negative sign will be the same in each of the supported fields.
the start date, inclusive, specifying the chronology of the calculation, not null
the end date, exclusive, in any chronology, not null
the period between this date and the end date, not null
ChronoLocalDate#until(ChronoLocalDate)