GregorianCalendar.ADEra 字段

定义

表示当前纪元。Represents the current era. 此字段为常数。This field is constant.

public: int ADEra = 1;
public const int ADEra = 1;
val mutable ADEra : int
Public Const ADEra As Integer  = 1

字段值

Int32

注解

公历可识别两个纪元:公元前The Gregorian calendar recognizes two eras: B.C. 或 B.C.E.,以及公元or B.C.E., and A.D. 或公历or C.E. GregorianCalendar 类实现仅识别公元 (的当前时代This implementation of the GregorianCalendar class recognizes only the current era (A.D. 或公历 ) 。or C.E.). 此字段始终返回1。This field always returns 1.

适用于

另请参阅