Calendar.GetLeapMonth メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定された年、または年と時代 (年号) の閏月を計算します。
GetLeapMonth(Int32, Int32) |
指定された年と時代 (年号) の閏月を計算します。 |
GetLeapMonth(Int32) |
指定された年の閏月を計算します。 |
- ソース:
- 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。
- 属性
注釈
閏月の概念をサポートするカレンダーでは、閏月は、特定の月の後、または年の任意の月の後に発生する可能性があります。 たとえば、 メソッドは GetMonth(DateTime) 、指定した日付に関連付けられている月を示す 1 から 13 までの数値を返します。 年の 8 か月目から 9 か月目の間に閏月がある場合、 GetMonth(DateTime) このメソッドは 8 か月目に 8、うるう 8 か月目に 9、9 月目に 10 を返します。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- ソース:
- 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。
- 属性
注釈
閏月の概念をサポートするカレンダーでは、閏月は、特定の月の後、または年の任意の月の後に発生する可能性があります。 たとえば、 メソッドは GetMonth(DateTime) 、指定した日付に関連付けられている月を示す 1 から 13 までの数値を返します。 年の 8 か月目から 9 か月目の間に閏月がある場合、 GetMonth(DateTime) このメソッドは 8 か月目に 8、うるう 8 か月目に 9、9 月目に 10 を返します。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。