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

纪元。

返回

返回值总是为 0,因为 JapaneseCalendar 类型不支持闰月的概念。

属性

例外

yearera 超出了 JapaneseCalendar 类型支持的范围。

注解

在支持闰月概念的日历中,闰月可以在特定的月份之后或一年中的任何月份之后发生。 例如, GetMonth 方法返回一个介于 1 和 13 之间的数字,指示与指定日期关联的月份。 如果一年的第八个月和第九个月之间有一个闰月,则 GetMonth 该方法为第八个月返回 8,闰第八个月返回 9,第九个月返回 10。

适用于