Share via


AbstractChronology.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", "GetProlepticYear_Ljava_time_chrono_Era_IHandler", ApiSince=26)]
public abstract int ProlepticYear (Java.Time.Chrono.IEra? era, int yearOfEra);
[<Android.Runtime.Register("prolepticYear", "(Ljava/time/chrono/Era;I)I", "GetProlepticYear_Ljava_time_chrono_Era_IHandler", ApiSince=26)>]
abstract member 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

Implements

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 documentation for java.time.chrono.Chronology.prolepticYear(java.time.chrono.Era, 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