Calendar.GetLeapMonth メソッド

定義

指定した年または年と年の閏月を計算します。

オーバーロード

名前 説明
GetLeapMonth(Int32, Int32)

指定した年と年号の閏月を計算します。

GetLeapMonth(Int32)

指定した年の閏月を計算します。

GetLeapMonth(Int32, Int32)

ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs

指定した年と年号の閏月を計算します。

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

パラメーター

year
Int32

たくさん。

era
Int32

時代 (年号)

返品

指定した年と年号の閏月を示す正の整数。

-又は-

このカレンダーで閏月がサポートされていない場合、または year パラメーターと era パラメーターで閏年が指定されていない場合は 0。

属性

注釈

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

適用対象

GetLeapMonth(Int32)

ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs
ソース:
Calendar.cs

指定した年の閏月を計算します。

public:
 virtual int GetLeapMonth(int year);
public virtual int GetLeapMonth(int year);
[System.Runtime.InteropServices.ComVisible(false)]
public virtual int GetLeapMonth(int year);
abstract member GetLeapMonth : int -> int
override this.GetLeapMonth : int -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member GetLeapMonth : int -> int
override this.GetLeapMonth : int -> int
Public Overridable Function GetLeapMonth (year As Integer) As Integer

パラメーター

year
Int32

たくさん。

返品

指定した年の閏月を示す正の整数。

-又は-

このカレンダーで閏月がサポートされていない場合、または year パラメーターが閏年を表していない場合は 0。

属性

注釈

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

適用対象