Breyta

Deila með


GregorianCalendar.GetLeapMonth(Int32, Int32) Method

Definition

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.

era
Int32

An era. Specify either ADEra or GregorianCalendar.Eras[Calendar.CurrentEra].

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