Period.WithMonths(Int32) 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 period with the specified amount of months.
[Android.Runtime.Register("withMonths", "(I)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? WithMonths(int months);
[<Android.Runtime.Register("withMonths", "(I)Ljava/time/Period;", "", ApiSince=26)>]
member this.WithMonths : int -> Java.Time.Period
Parameters
- months
- Int32
the months to represent, may be negative
Returns
a Period based on this period with the requested months, not null
- Attributes
Remarks
To be added.
Java reference for java.time.Period.withMonths.