System.Globalization.HebrewCalendar.GetMonthsInYear Method

Returns the number of months in the specified year in the specified era.

Syntax

public override int GetMonthsInYear (int year, int era)

Parameters

year
An integer that represents the year.
era
An integer that represents the era. Specify either HebrewCalendar.HebrewEra or HebrewCalendar.Eras[Calendar.CurrentEra].

Returns

The number of months in the specified year in the specified era. The return value is either 12 in a common year, or 13 in a leap year.

Remarks

This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 5999 (1583 to 2239 in the Gregorian calendar).

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0