YearMonth.PlusMonths(Int64) Method

Definition

Returns a copy of this YearMonth with the specified number of months added.

[Android.Runtime.Register("plusMonths", "(J)Ljava/time/YearMonth;", "", ApiSince=26)]
public Java.Time.YearMonth? PlusMonths(long monthsToAdd);
[<Android.Runtime.Register("plusMonths", "(J)Ljava/time/YearMonth;", "", ApiSince=26)>]
member this.PlusMonths : int64 -> Java.Time.YearMonth

Parameters

monthsToAdd
Int64

the months to add, may be negative

Returns

a YearMonth based on this year-month with the months added, not null

Attributes

Remarks

Returns a copy of this YearMonth with the specified number of months added. This instance is immutable and unaffected by this method call.

Java reference for java.time.YearMonth.plusMonths.

Applies to