Language

IsoChronology.ProlepticYear(IEra, Int32) Method

Definition

Calculates the proleptic-year given the era and year-of-era.

[Android.Runtime.Register("prolepticYear", "(Ljava/time/chrono/Era;I)I", "", ApiSince=26)]
public override int ProlepticYear(Java.Time.Chrono.IEra? era, int yearOfEra);
[<Android.Runtime.Register("prolepticYear", "(Ljava/time/chrono/Era;I)I", "", ApiSince=26)>]
override this.ProlepticYear : Java.Time.Chrono.IEra * int -> int

Parameters

era
IEra

the era of the correct type for the chronology, not null

yearOfEra
Int32

the chronology year-of-era

Returns

the proleptic-year

Attributes

Remarks

Calculates the proleptic-year given the era and year-of-era. This combines the era and year-of-era into the single proleptic-year field. If the chronology makes active use of eras, such as JapaneseChronology then the year-of-era will be validated against the era. For other chronologies, validation is optional.

Java reference for java.time.chrono.IsoChronology.prolepticYear.

Applies to