Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class NodaTime.​Calendars.​Era

Assembly: NodaTime

Inheritance: object → Era

Represents an era used in a calendar.

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

public static Era
Common
The "Common" era (CE), also known as Anno Domini (AD). This is used in the ISO, Gregorian and Julian calendars.
public static Era
BeforeCommon
The "before common" era (BCE), also known as Before Christ (BC). This is used in the ISO, Gregorian and Julian calendars.
public static Era
AnnoMartyrum
The "Anno Martyrum" or "Era of the Martyrs". This is the sole era used in the Coptic calendar.
public static Era
AnnoHegirae
The "Anno Hegira" era. This is the sole era used in the Hijri (Islamic) calendar.
public static Era
AnnoMundi
The "Anno Mundi" era. This is the sole era used in the Hebrew calendar.
public static Era
AnnoPersico
The "Anno Persico" era. This is the sole era used in the Persian calendar.
public static Era
Bahai
The "Bahá'í" era. This is the sole era used in the Badi calendar.
public string
Name
Returns the name of this era, e.g. "CE" or "BCE".

Methods

public string
ToString​()
Returns the name of this era.
Returns The name of this era.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object