Period.Plus(ITemporalAmount) Method

Definition

Returns a copy of this period with the specified period added.

[Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Chrono.IChronoPeriod? Plus(Java.Time.Temporal.ITemporalAmount? amountToAdd);
[<Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/Period;", "", ApiSince=26)>]
abstract member Plus : Java.Time.Temporal.ITemporalAmount -> Java.Time.Chrono.IChronoPeriod
override this.Plus : Java.Time.Temporal.ITemporalAmount -> Java.Time.Chrono.IChronoPeriod

Parameters

amountToAdd
ITemporalAmount

the amount to add, not null

Returns

a Period based on this period with the requested period added, not null

Implements

Attributes

Remarks

Returns a copy of this period with the specified period added. This operates separately on the years, months and days. No normalization is performed. For example, "1 year, 6 months and 3 days" plus "2 years, 2 months and 2 days" returns "3 years, 8 months and 5 days". The specified amount is typically an instance of Period. Other types are interpreted using from(TemporalAmount). This instance is immutable and unaffected by this method call.

Java reference for java.time.Period.plus.

Applies to