共用方式為


IsoEra.Of(Int32) Method

Definition

Obtains an instance of IsoEra from an int value.

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

Parameters

isoEra
Int32

the BCE/CE value to represent, from 0 (BCE) to 1 (CE)

Returns

the era singleton, not null

Attributes

Remarks

Obtains an instance of IsoEra from an int value.

IsoEra is an enum representing the ISO eras of BCE/CE. This factory allows the enum to be obtained from the int value.

Java documentation for java.time.chrono.IsoEra.of(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to