Uses of Interface
java.time.chrono.ChronoPeriod
| Package | Description |
|---|---|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.chrono |
Generic API for calendar systems other than the default ISO.
|
-
Uses of ChronoPeriod in java.time
Classes in java.time that implement ChronoPeriod Modifier and Type Class Description classPeriodA date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'. -
Uses of ChronoPeriod in java.time.chrono
Methods in java.time.chrono that return ChronoPeriod Modifier and Type Method Description static ChronoPeriodChronoPeriod. between(ChronoLocalDate startDateInclusive, ChronoLocalDate endDateExclusive)Obtains aChronoPeriodconsisting of amount of time between two dates.ChronoPeriodChronoPeriod. minus(TemporalAmount amountToSubtract)Returns a copy of this period with the specified period subtracted.ChronoPeriodChronoPeriod. multipliedBy(int scalar)Returns a new instance with each amount in this period in this period multiplied by the specified scalar.default ChronoPeriodChronoPeriod. negated()Returns a new instance with each amount in this period negated.ChronoPeriodChronoPeriod. normalized()Returns a copy of this period with the amounts of each unit normalized.default ChronoPeriodChronology. period(int years, int months, int days)Obtains a period for this chronology based on years, months and days.ChronoPeriodChronoPeriod. plus(TemporalAmount amountToAdd)Returns a copy of this period with the specified period added.ChronoPeriodChronoLocalDate. until(ChronoLocalDate endDateExclusive)Calculates the period between this date and another date as aChronoPeriod.