YearMonth.PlusMonths(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.