Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | Members

System.Globalization.DateTimeFormatInfo.GetEraName Method

Gets the string containing the name of the specified era.

public string GetEraName (int era)

Parameters

era
A int representing the era.

Returns

A string containing the name of the era.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionera does not represent a valid era in calendar for the current thread.

Remarks

Note: An era name is a culturally specific name for a period of time marked by distinctive characters or reckoned from a fixed point or event. For example "A.D." and "B.C." are two eras of the Gregorian calendar.

Requirements

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