GregorianCalendar.Eras Property

 

Gets the list of eras in the GregorianCalendar.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public override int[] Eras { get; }

Property Value

Type: System.Int32[]

An array of integers that represents the eras in the GregorianCalendar.

The Gregorian calendar recognizes two eras: B.C. or B.C.E., and A.D. or C.E. This implementation of the GregorianCalendar class recognizes only the current era (A.D. or C.E.). This property always returns an array with only one element.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: