IChronoLocalDate.Era Property

Definition

Gets the era, as defined by the chronology.

public virtual Java.Time.Chrono.IEra? Era { [Android.Runtime.Register("getEra", "()Ljava/time/chrono/Era;", "GetGetEraHandler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getEra", "()Ljava/time/chrono/Era;", "GetGetEraHandler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.Era : Java.Time.Chrono.IEra

Property Value

the chronology specific era constant applicable at this date, not null

Attributes

Remarks

Gets the era, as defined by the chronology.

The era is, conceptually, the largest division of the time-line. Most calendar systems have a single epoch dividing the time-line into two eras. However, some have multiple eras, such as one for the reign of each leader. The exact meaning is determined by the Chronology.

All correctly implemented Era classes are singletons, thus it is valid code to write date.getEra() == SomeChrono.ERA_NAME).

This default implementation uses Chronology#eraOf(int).

Java documentation for java.time.chrono.ChronoLocalDate.getEra().

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