Period

Class Period

All Implemented Interfaces:
Serializable, ChronoPeriod, TemporalAmount
public final class Period
extends Object
implements ChronoPeriod, Serializable

A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'.

This class models a quantity or amount of time in terms of years, months and days. See Duration for the time-based equivalent to this class.

Durations and periods differ in their treatment of daylight savi