Megosztás a következőn keresztül:


IChronology.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:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public 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:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", 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

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