System.Globalization.ThaiBuddhistCalendar.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.

Remarks

The System.Globalization.ThaiBuddhistCalendar class recognizes only the current era.

Requirements

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