JulianCalendar.GetLeapMonth(Int32, Int32) 方法

定義

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

public:
 override int GetLeapMonth(int year, int era);
public override int GetLeapMonth (int year, int era);
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetLeapMonth (int year, int era);
override this.GetLeapMonth : int * int -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

參數

year
Int32

表示年份的整數。

era
Int32

表示紀元的整數。

傳回

正整數,指出在指定的年份及紀元中的閏月。 如果曆法不支援閏月,或 yearera 未指定閏年,則這個方法也會傳回零。

屬性

備註

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

適用於