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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.