Period.Of(Int32, Int32, 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.
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.