Companion
Properties
Chol Hamoed (interim days) of Pesach (Passover)
Chol Hamoed (interim days) of Succos/Sukkos (Tabernacles)
The 14th day of Nissan, the day before of Pesach (Passover).
Erev Rosh Hashana (the day before Rosh Hashana), the 29th of Elul
Erev Shavuos (the day before Shavuos), the 5th of Sivan
The 14th day of Tishrei, the day before of Succos/Sukkos (Tabernacles).
The 9th day of Tishrei, the day before of Yom Kippur.
The fast of Esther, usually on the 13th day of Adar (or Adar II on leap years). It is earlier on some years.
The fast of Gedalyah, the 3rd of Tishrei.
Hoshana Rabba, the 7th day of Succos/Sukkos that occurs on the 21st of Tishrei.
The 33rd day of the Omer, the 18th of Iyar, a minor holiday.
value returned by yomTovIndex to indicate no holiday.
An array of parshiyos in the 17 possible combinations.
Pesach Sheni, the 14th day of Iyar, a minor holiday.
The holiday of Purim Katan on the 14th day of Adar I on a leap year when Purim is on Adar II, a minor holiday.
Rosh Chodesh, the new moon on the first day of the Jewish month, and the 30th day of the previous month in the case of a month with 30 days.
Rosh Hashana, the first of Tishrei.
The fast of the 17th day of Tamuz
Shmini Atzeres, the 8th day of Succos/Sukkos is an independent holiday that occurs on the 22nd of Tishrei.
The holiday of Shushan Purim on the 15th day of Adar (or Adar II on leap years).
The holiday of Purim Katan on the 15th day of Adar I on a leap year when Purim is on Adar II, a minor holiday.
Simchas Torah, the 9th day of Succos/Sukkos, or the second day of Shmini Atzeres that is celebrated .getInIsrael on the 23rd of Tishrei.
The fast of the 10th day of Teves.
The fast of the 9th of Av
Tu Bishvat on the 15th day of Shevat, a minor holiday.
Yom Ha'atzmaut, Israel Independence Day, the 5th of Iyar, but if it occurs on a Friday or Saturday, the holiday is moved back to Thursday, the 3rd of 4th of Iyar, and if it falls on a Monday, it is moved forward to Tuesday the 6th of Iyar. A .isUseModernHolidays.
Yom HaShoah, Holocaust Remembrance Day, usually held on the 27th of Nissan. If it falls on a Friday, it is moved to the 26th, and if it falls on a Sunday it is moved to the 28th. A .isUseModernHolidays.
Yom HaZikaron, Israeli Memorial Day, held a day before Yom Ha'atzmaut. A .isUseModernHolidays.
The holiday of Yom Kippur, the 10th day of Tishrei
The day before Rosh Chodesh (moved to Thursday if Rosh Chodesh is on a Friday or Shabbos) in most months. This constant is not actively in use.
Yom Yerushalayim or Jerusalem Day, on 28 Iyar. A .isUseModernHolidays.
Functions
kotlinx.datetime.DayOfWeek is ordered according to ISO-8601, where Monday is 1 and Sunday is 7. java.util.Calendar's day of week constants are ordered with Sunday is 1 and Saturday is 7. This function converts between the two. It is called toJewishDayOfWeek because the Torah describes Saturday as the 7th day. Note: The caller should prefer to compare DayOfWeeks directly, instead of converting to day numbers. This is to improve readability and possible future-proofing.