Period.Of(Int32, Int32, Int32) Method

Definition

Obtains a Period representing a number of years, months and days.

[Android.Runtime.Register("of", "(III)Ljava/time/Period;", "", ApiSince=26)]
public static Java.Time.Period? Of(int years, int months, int days);
[<Android.Runtime.Register("of", "(III)Ljava/time/Period;", "", ApiSince=26)>]
static member Of : int * int * int -> Java.Time.Period

Parameters

years
Int32

the amount of years, may be negative

months
Int32

the amount of months, may be negative

days
Int32

the amount of days, may be negative

Returns

the period of years, months and days, not null

Attributes

Remarks

Obtains a Period representing a number of years, months and days. This creates an instance based on years, months and days.

Java reference for java.time.Period.of.

Applies to