TaiwanCalendar.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

一紀元。

傳回

Int32

傳回值永遠都會是 0,因為 TaiwanCalendar 類別不支援閏月的概念。

屬性

備註

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

適用於