GregorianCalendar.GetLeapMonth(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculates the leap month for a specified year and era.
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
Parameters
- year
- Int32
A year.
Returns
Always 0 because the Gregorian calendar does not recognize leap months.
- Attributes
Exceptions
year
is less than the Gregorian calendar year 1 or greater than the Gregorian calendar year 9999.
-or-
era
is not ADEra or GregorianCalendar.Eras[Calendar.CurrentEra]
.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.