This calendar class
implements
the Hebrew calendar. This
complicated calendar determines leap years within a 19-year cycle.
The 3rd, 6th, 8th, 11th, 14th, 17th, and 19th years are leap years.
Regular years have 12 months and between 353 and 355 days, and leap
years have 13 months and between 383 and 385 days; the variance is
determined by the placement of Jewish holidays. This implementation
recognizes the years 5343 to 6000 (A.M.), which is equivalent to the
Gregorian years 1582 to 2240.
public class HebrewCalendar : Calendar {
// Public Constructors
public HebrewCalendar( );
// Public Static Fields
public static readonly int HebrewEra;
// =1
// Public Instance Properties
public override int[ ] Eras{get; }
// overrides Calendar
public override int TwoDigitYearMax{set; get; }
// overrides Calendar
// Public Instance Methods
public override DateTime AddMonths(DateTime time, int months);
// overrides Calendar
public override DateTime AddYears(DateTime time, int years)
// overrides Calendar
public override int GetDayOfMonth(DateTime time);
// overrides Calendar
public override DayOfWeek GetDayOfWeek(DateTime time);
// overrides Calendar
public override int GetDayOfYear(DateTime time);
// overrides Calendar
public override int GetDaysInMonth(int year, int month, int era)
// overrides Calendar
public override int GetDaysInYear(int year, int era);
// overrides Calendar
public override int GetEra(DateTime time);
// overrides Calendar
public override int GetMonth(DateTime time);
// overrides Calendar
public override int GetMonthsInYear(int year, int era);
// overrides Calendar
public override int GetYear(DateTime time);
// overrides Calendar
public override bool IsLeapDay(int year, int month, int day, int era)
// overrides Calendar
public override bool IsLeapMonth(int year, int month, int era)
// overrides Calendar
public override bool IsLeapYear(int year, int era);
// overrides Calendar
public override DateTime ToDateTime(int year, int month, int day, int hour,
int minute, int second, int millisecond, int era)
// overrides Calendar
public override int ToFourDigitYear(int year);
// overrides Calendar
}