UmAlQuraCalendar::GetEra Method (DateTime)

 

Calculates the era in which a specified date occurs.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual int GetEra(
	DateTime time
) override

Parameters

time
Type: System::DateTime

The date value to read.

Return Value

Type: System::Int32

Always returns the UmAlQuraEra value.

Exception Condition
ArgumentOutOfRangeException

time is outside the range supported by this calendar.

The Um Al Qura calendar recognizes one era: A.H. (Latin "Anno Hegirae", which means "the year of the migration," in reference to the migration of Muhammad (PBUH) from Mecca).

The following example displays the values of several components of a date in the Um Al Qura calendar.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: