Bewerken

Delen via


KoreanLunisolarCalendar.GetEra(DateTime) Method

Definition

Retrieves the era that corresponds to the specified DateTime.

public:
 override int GetEra(DateTime time);
public override int GetEra (DateTime time);
override this.GetEra : DateTime -> int
Public Overrides Function GetEra (time As DateTime) As Integer

Parameters

time
DateTime

The DateTime to read.

Returns

An integer that represents the era specified by the time parameter. The return value for a KoreanLunisolarCalendar object is always the GregorianEra value.

Exceptions

time represents a date and time less than MinSupportedDateTime or greater than MaxSupportedDateTime.

Applies to