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

時代 (年号) を表す整数。

戻り値

Int32

指定した年と時代 (年号) における閏月を示す 1 ~ 13 の正の整数。

または カレンダーが閏月をサポートしていない場合や、year パラメーターおよび era パラメーターが閏年を指定しない場合は 0。

注釈

うるう月をサポートするカレンダーでは、閏月は、特定の月の後、または 1 年の任意の月の後に発生する可能性があります。 たとえば、このメソッドは GetMonth 、指定した日付に関連付けられている月を示す 1 から 13 までの数値を返します。 年の 8 か月目から 9 か月目の間に閏月がある場合、 GetMonth このメソッドは 8 か月目に 8、うるう 8 月に 9、9 月目に 10 を返します。

適用対象