EastAsianLunisolarCalendar.GetMonthsInYear(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 number of months in the specified year and era.
public:
override int GetMonthsInYear(int year, int era);
public override int GetMonthsInYear (int year, int era);
override this.GetMonthsInYear : int * int -> int
Public Overrides Function GetMonthsInYear (year As Integer, era As Integer) As Integer
Parameters
- year
- Int32
An integer that represents the year.
- era
- Int32
An integer that represents the era.
Returns
The number of months in the specified year in the specified era. The return value is 12 months in a common year or 13 months in a leap year.
Exceptions
year
or era
is outside the range supported by this calendar.
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.