Udostępnij za pośrednictwem


IChronology.Of(String) Method

Definition

Obtains an instance of Chronology from a chronology ID or calendar system type.

[Android.Runtime.Register("of", "(Ljava/lang/String;)Ljava/time/chrono/Chronology;", "", ApiSince=26)]
public static Java.Time.Chrono.IChronology? Of (string? id);
[<Android.Runtime.Register("of", "(Ljava/lang/String;)Ljava/time/chrono/Chronology;", "", ApiSince=26)>]
static member Of : string -> Java.Time.Chrono.IChronology

Parameters

id
String

the chronology ID or calendar system type, not null

Returns

the chronology with the identifier requested, not null

Attributes

Remarks

Obtains an instance of Chronology from a chronology ID or calendar system type.

This returns a chronology based on either the ID or the type. The #getId() chronology ID uniquely identifies the chronology. The #getCalendarType() calendar system type is defined by the CLDR specification.

The chronology may be a system chronology or a chronology provided by the application via ServiceLoader configuration.

Since some calendars can be customized, the ID or type typically refers to the default customization. For example, the Gregorian calendar can have multiple cutover dates from the Julian, but the lookup only provides the default cutover date.

Java documentation for java.time.chrono.Chronology.of(java.lang.String).

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