Gets the amount of days of this period.
Gets the amount of months of this period.
Gets the set of units supported by this period.
Gets the amount of years of this period.
Checks if any of the three units of this period are negative.
Checks if all three units of this period are zero.
Returns a copy of this period with the specified period subtracted.
Returns a copy of this period with the specified days subtracted.
Returns a copy of this period with the specified months subtracted.
Returns a copy of this period with the specified years subtracted.
Returns a new instance with each element in this period multiplied by the specified scalar.
Returns a new instance with each amount in this period negated.
Returns a copy of this period with the years and months normalized.
Returns a copy of this period with the specified period added.
Returns a copy of this period with the specified days added.
Returns a copy of this period with the specified months added.
Returns a copy of this period with the specified years added.
Gets the total number of months in this period.
Returns a copy of this period with the specified amount of days.
Returns a copy of this period with the specified amount of months.
Returns a copy of this period with the specified amount of years.
Static
betweenStatic
fromObtains an instance of Period from a temporal amount.
Static
ofObtains a Period representing a number of years, months and days.
Static
ofStatic
ofStatic
ofStatic
ofStatic
parse
A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'.
See java.time.Period for full documentation