EastAsianLunisolarCalendar.GetLeapMonth(Int32, Int32) 方法

定義

計算指定年份和紀元的閏月。

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

參數

year
Int32

表示年份的整數。

era
Int32

表示紀元的整數。

傳回

1 到 13 的正整數,表示在指定的年份及紀元中的閏月。

-或-

如果這個曆法不支援閏月,或是 yearera 參數沒有指定閏年,便為零。

備註

在支援閏月的行事曆中,閏月可以在特定月份之後或一年中的任何月份之後發生。 例如, GetMonth 方法會傳回 1 到 13 的數位,指出與指定日期相關聯的月份。 如果年份第八個月和第九個月之間有閏月, GetMonth 則方法會傳回 8 代表第八個月,9 表示閏第八個月,而第九個月則傳回 10。

適用於