System.Globalization.HebrewCalendar.GetEra Method

Returns the era in the specified DateTime.

Syntax

public override int GetEra (DateTime time)

Parameters

time
The DateTime to read.

Returns

An integer that represents the era in the specified DateTime. The return value is always HebrewCalendar.HebrewEra.

Remarks

The Hebrew calendar recognizes two eras: B.C.E. (before the common era) and A.M. (Latin "Anno Mundi", which means "the year of the world"). This implementation of the System.Globalization.HebrewCalendar class recognizes only the current era (A.M.) and only the Hebrew years 5343 to 5999 (1583 to 2239 in the Gregorian calendar).

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0