getHebrewCalendar static method

CalendarSystem getHebrewCalendar(
  1. HebrewMonthNumbering monthNumbering
)

Returns a Hebrew calendar, as described at http://en.wikipedia.org/wiki/Hebrew_calendar. This is a purely mathematical calculator, applied proleptically to the period where the real calendar was observational.

Please note that in version 1.3.0 of Time Machine, support for the Hebrew calendar is somewhat experimental, particularly in terms of calculations involving adding or subtracting years. Additionally, text formatting and parsing using month names is not currently supported, due to the challenges of handling leap months. It is hoped that this will be improved in future versions. The implementation for this was taken from http://www.cs.tau.ac.il/~nachum/calendar-book/papers/calendar.ps, which is a domain algorithm presumably equivalent to that given in the Calendrical Calculations book by the same authors (Nachum Dershowitz and Edward Reingold).

  • monthNumbering: The month numbering system to use

Returns: A Hebrew calendar system for the given month numbering.

Implementation

static CalendarSystem getHebrewCalendar(HebrewMonthNumbering monthNumbering)
{
  Preconditions.checkArgumentRange('monthNumbering', monthNumbering.index, 0, 1); // 1, 2);
  return _HebrewCalendars.byMonthNumbering[monthNumbering.index];
}