Redigera

Dela via


EastAsianLunisolarCalendar.GetMonthsInYear(Int32, Int32) Method

Definition

Calculates the number of months in the specified year and era.

public:
 override int GetMonthsInYear(int year, int era);
public override int GetMonthsInYear (int year, int era);
override this.GetMonthsInYear : int * int -> int
Public Overrides Function GetMonthsInYear (year As Integer, era As Integer) As Integer

Parameters

year
Int32

An integer that represents the year.

era
Int32

An integer that represents the era.

Returns

The number of months in the specified year in the specified era. The return value is 12 months in a common year or 13 months in a leap year.

Exceptions

year or era is outside the range supported by this calendar.

Applies to