Class Era
Represents an era used in a calendar.
Since 1.0.x
Availability net6.0, netstandard2.0
Inheritance
Object
Era
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
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 net6.0, netstandard2.0
Declaration
public static Era AnnoHegirae { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Hegira" era. |
AnnoMartyrum
The "Anno Martyrum" or "Era of the Martyrs". This is the sole era used in the Coptic calendar.
Since 1.2.x
Availability net6.0, netstandard2.0
Declaration
public static Era AnnoMartyrum { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Martyrum" or "Era of the Martyrs". |
AnnoMundi
The "Anno Mundi" era. This is the sole era used in the Hebrew calendar.
Since 1.3.x
Availability net6.0, netstandard2.0
Declaration
public static Era AnnoMundi { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Mundi" era. |
AnnoPersico
The "Anno Persico" era. This is the sole era used in the Persian calendar.
Since 1.3.x
Availability net6.0, netstandard2.0
Declaration
public static Era AnnoPersico { get; }
Property Value
Type | Description |
---|---|
Era | The "Anno Persico" era. |
Bahai
The "Bahá'í" era. This is the sole era used in the Badi calendar.
Since 2.3.x
Availability net6.0, netstandard2.0
Declaration
public static Era Bahai { get; }
Property Value
Type | Description |
---|---|
Era | The "Bahá'í" era. |
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 net6.0, netstandard2.0
Declaration
public static Era BeforeCommon { get; }
Property Value
Type | Description |
---|---|
Era | The "before common" era (BCE), also known as Before Christ (BC). |
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 net6.0, netstandard2.0
Declaration
public static Era Common { get; }
Property Value
Type | Description |
---|---|
Era | The "Common" era (CE), also known as Anno Domini (AD). |
Name
Returns the name of this era, e.g. "CE" or "BCE".
Since 1.0.x
Availability net6.0, netstandard2.0
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | The name of this era. |
Methods
ToString()
Returns the name of this era.
Since 1.0.x
Availability net6.0, netstandard2.0
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The name of this era. |
Overrides
System.Object.ToString()