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
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.