Period.WithMonths(Int32) Method

Definition

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.

Applies to