Calendar.GetLeapMonth 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定年份或年份和時代的閏月。
多載
| 名稱 | Description |
|---|---|
| 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 未指定閏年,則為零。
- 屬性
備註
在支持閏月概念的曆法中,閏月可以發生在特定月份之後,或一年中任何一個月之後。 例如,該 GetMonth(DateTime) 方法回傳一個介於 1 到 13 之間的數字,表示與指定日期相關的月份。 若在第八個月與第九個月之間有閏月,該 GetMonth(DateTime) 方法會回傳第八個月的8,閏第八個月回傳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 參數不代表閏年,則為零。
- 屬性
備註
在支持閏月概念的曆法中,閏月可以發生在特定月份之後,或一年中任何一個月之後。 例如,該 GetMonth(DateTime) 方法回傳一個介於 1 到 13 之間的數字,表示與指定日期相關的月份。 若在第八個月與第九個月之間有閏月,該 GetMonth(DateTime) 方法會回傳第八個月的8,閏第八個月回傳9,第九個月回傳10。