Year.Of(Int32) Method

Definition

Obtains an instance of Year.

[Android.Runtime.Register("of", "(I)Ljava/time/Year;", "", ApiSince=26)]
public static Java.Time.Year? Of(int isoYear);
[<Android.Runtime.Register("of", "(I)Ljava/time/Year;", "", ApiSince=26)>]
static member Of : int -> Java.Time.Year

Parameters

isoYear
Int32

the ISO proleptic year to represent, from MIN_VALUE to MAX_VALUE

Returns

the year, not null

Attributes

Remarks

Obtains an instance of Year. This method accepts a year value from the proleptic ISO calendar system. The year 2AD/CE is represented by 2. The year 1AD/CE is represented by 1. The year 1BC/BCE is represented by 0. The year 2BC/BCE is represented by -1.

Java reference for java.time.Year.of.

Applies to