Class Era
Represents an era used in a calendar.
Since 1.0.x
Availability net45, netstandard1.3
Inheritance
Object
Era
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: NodaTime.Calendars
Assembly: NodaTime.dll
Syntax
public sealed class Era
Remarks
All the built-in calendars in Noda Time use the values specified by the static
read-only fields in this class. These may be compared for reference equality to check for specific
eras.
Properties
AnnoHegirae
The "Anno Hegira" era. This is the sole era used in the Hijri (Islamic) calendar.
Since 1.0.x
Availability net45, netstandard1.3
Declaration
public static Era AnnoHegirae { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Hegira" era. (The value returned is never null.) |
AnnoMartyrum
The "Anno Martyrum" or "Era of the Martyrs". This is the sole era used in the Coptic calendar.
Since 1.2.x
Availability net45, netstandard1.3
Declaration
public static Era AnnoMartyrum { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Martyrum" or "Era of the Martyrs". (The value returned is never null.) |
AnnoMundi
The "Anno Mundi" era. This is the sole era used in the Hebrew calendar.
Since 1.3.x
Availability net45, netstandard1.3
Declaration
public static Era AnnoMundi { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Mundi" era. (The value returned is never null.) |
AnnoPersico
The "Anno Persico" era. This is the sole era used in the Persian calendar.
Since 1.3.x
Availability net45, netstandard1.3
Declaration
public static Era AnnoPersico { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Persico" era. (The value returned is never null.) |
BeforeCommon
The "before common" era (BCE), also known as Before Christ (BC). This is used in the ISO, Gregorian and Julian calendars.
Since 1.0.x
Availability net45, netstandard1.3
Declaration
public static Era BeforeCommon { get; }
Property Value
Type | Description |
---|---|
Era | The "before common" era (BCE), also known as Before Christ (BC). (The value returned is never null.) |
Common
The "Common" era (CE), also known as Anno Domini (AD). This is used in the ISO, Gregorian and Julian calendars.
Since 1.0.x
Availability net45, netstandard1.3
Declaration
public static Era Common { get; }
Property Value
Type | Description |
---|---|
Era | The "Common" era (CE), also known as Anno Domini (AD). (The value returned is never null.) |
Name
Returns the name of this era, e.g. "CE" or "BCE".
Since 1.0.x
Availability net45, netstandard1.3
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | The name of this era. (The value returned is never null.) |
Methods
ToString()
Returns the name of this era.
Since 1.0.x
Availability net45, netstandard1.3
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The name of this era. |
Overrides
System.Object.ToString()