Class Era
Represents an era used in a calendar.
Since 1.0.x
Availability net35-Client, PCL
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.
Fields
AnnoHegirae
The "Anno Hegira" era. This is the sole era used in the Hijri (Islamic) calendar.
Since 1.0.x
Availability net35-Client, PCL
Declaration
public static readonly Era AnnoHegirae
Field Value
Type | Description |
---|---|
Era |
AnnoMartyrm
The "Anno Martyrum" or "Era of the Martyrs". This is the sole era used in the Coptic calendar.
Since 1.0.x
Availability net35-Client, PCL
Declaration
public static readonly Era AnnoMartyrm
Field Value
Type | Description |
---|---|
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 net35-Client, PCL
Declaration
public static readonly Era BeforeCommon
Field Value
Type | Description |
---|---|
Era |
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 net35-Client, PCL
Declaration
public static readonly Era Common
Field Value
Type | Description |
---|---|
Era |
Properties
Name
Returns the name of this era, e.g. "CE" or "BCE".
Since 1.0.x
Availability net35-Client, PCL
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Methods
ToString()
Returns the name of this era.
Since 1.0.x
Availability net35-Client, PCL
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The name of this era. |
Overrides
System.Object.ToString()