KoreanLunisolarCalendar.GetEra(DateTime) Metoda

Definicja

Pobiera erę odpowiadającą określonej DateTimeerze .

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

Parametry

time
DateTime

Element do odczytania DateTime .

Zwraca

Liczba całkowita reprezentująca erę time określoną przez parametr . Zwracana wartość KoreanLunisolarCalendar obiektu jest zawsze wartością GregorianEra .

Wyjątki

time reprezentuje datę i godzinę mniejszą niż MinSupportedDateTime lub większą niż MaxSupportedDateTime.

Dotyczy