TefilaRules

Tefila Rules is a utility class that covers the various halachos and minhagim regarding changes to daily tefila / prayers, based on the Jewish calendar. This is mostly useful for use in developing siddur type applications, but it is also valuable for shul calendars that set tefila times based on if tachanun is recited that day. There are many settings in this class to cover the vast majority of minhagim, but there are likely some not covered here. The source for many of the chasidishe minhagim can be found in the Minhag Yisrael Torah on Orach Chaim 131. Dates used in specific communities such as specific yahrzeits or a holidays like Purim Mezhbizh (Medzhybizh) celebrated on 11 Teves or Purim Saragossa celebrated on the (17th or) 18th of Shevat are not (and likely will not be) supported by this class.

Sample code:

TefilaRules tr = new TefilaRules();
JewishCalendar jewishCalendar = new JewishCalendar();
HebrewDateFormatter hdf = new HebrewDateFormatter();
jewishCalendar.setJewishDate(5783, HebrewMonth.TISHREI, 1); // Rosh Hashana
System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jd));
jewishCalendar.setJewishDate(5783, HebrewMonth.ADAR, 17);
System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar));
tr.setTachanunRecitedWeekOfPurim(false);
System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar));

Author

Y. Paritcher 2019 - 2021

Eliyahu Hershfeld 2019 - 2022

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Is tachanun is recited on the 13th of Sivan (Yom Tov Sheni shel Galuyos of the 7th day) outside Israel. This is brought down by the Shaarie Teshuva 131:19 quoting the Sheyarei Kneses Hagedola 131:12that tachanun should not be recited on this day. Rav Shlomo Zalman Orbach in Halichos Shlomo on Shavuos 12:16:25 is of the opinion that even in chutz laaretz it should be recited since the yemei Tashlumin are counted based on Israel since that is where the karbanos are brought. Both isTachanunRecitedShacharis and isTachanunRecitedMincha only return false if the location is not set to JewishCalendar.getInIsrael and both isTachanunRecitedWeekAfterShavuos and isTachanunRecited13SivanOutOfIsrael are set to false.

Link copied to clipboard

Is tachanun recited on 15 Iyar (sfaika deyoma of Pesach Sheni) out of Israel. If isTachanunRecitedPesachSheni is true this will be ignored even if false.

Link copied to clipboard

Is tachanun recited at the end Of Tishrei.The Magen Avraham 669:1 and the Pri Chadash 131:7 state that some places to not recite tachanun during this period. The Sh"UT Chasam Sofer on Choshen Mishpat 77 writes that this is the minhag in Ashkenaz. The Shaarei Teshuva 131:19 quotes the Sheyarie Kneses Hagdola who also states that it should not be recited. The Aderes wanted to institute saying tachanun during this period, but was dissuaded from this by Rav Shmuel Salant who did not want to change the minhag in Yerushalayim. The Aruch Hashulchan is of the opinion that that this minhag is incorrect, and it should be recited, and The Chazon Ish also recited tachanun during this period. See the Dirshu edition of the Mishna Berurah for details.

Link copied to clipboard

The default value is true.

Link copied to clipboard

The default value is true.

Link copied to clipboard

Is tachanun recited on mincha on erev Lag Baomer.

Link copied to clipboard

Is tachanun recited on Pesach Sheni. The Pri Chadash 131:7 states that tachanun should not be recited. The Aruch Hashulchan states that this is the minhag of the sephardim. the Shaarei Efraim 10:27 also mentions that it is not recited, as does the Siddur Yaavetz (Shaar Hayesod, Chodesh Iyar). The Pri Megadim (Mishbetzes Hazahav 131:15) and the Chazon Ish (Erev Pesahc Shchal Beshabos, page 203 in [Rav Sheraya

Link copied to clipboard

Is tachanun recited during the Shivas Yemei Hamiluim, from the 23 of HebrewMonth.ADAR on a non-leap-year or Adar II on a leap year to the end of the month. Some chasidishe communities do not say tachanun during this week. See Darkei Chaim Veshalom 191.

Link copied to clipboard

The default value is true.

Link copied to clipboard

Is tachanun recited during the week after Shavuos. This is the opinion of the Pri Megadim quoted by the Mishna Berurah. This is since karbanos of Shavuos have tashlumim for 7 days, it is still considered like a Yom Tov. The Chazon Ish quoted in the Orchos Rabainu vol. 1 page 68 recited tachanun during this week.

Link copied to clipboard

Is tachanun recited during the sefira week of Hod (14 - 20 Iyar, or the 29th - 35th of the JewishCalendar.getDayOfOmer). Some chasidishe communities do not recite tachanun during this week. See Minhag Yisrael Torah 131:Iyar.

Link copied to clipboard

The default value is true.

Functions

Link copied to clipboard
fun isAlHanissimRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Al HaNissim is recited on the day in question.

Link copied to clipboard
fun JewishCalendar.isBetween(startDate: JewishDate, endDate: JewishDate): Boolean
Link copied to clipboard
fun isHallelRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Hallel is recited on the day in question. This will return true for both Hallel shalem and Chatzi Hallel. See .isHallelShalemRecited to know if the complete Hallel is recited.

Link copied to clipboard
fun isHallelShalemRecited(jewishCalendar: JewishCalendar): Boolean

Returns if hallel shalem is recited on the day in question. This will always return false if isHallelRecited returns false.

Link copied to clipboard
fun isMashivHaruachEndDate(jewishCalendar: JewishCalendar): Boolean

Returns if the date is the end date for reciting Mashiv Haruach Umorid Hageshem. The date is 15 Nissan.

Link copied to clipboard
fun isMashivHaruachRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Mashiv Haruach Umorid Hageshem is recited. This period starts on 22 HebrewMonth.TISHREI and ends on the 15th day of Nissan.

Link copied to clipboard
fun isMashivHaruachStartDate(jewishCalendar: JewishCalendar): Boolean

Returns if the date is the start date for reciting Mashiv Haruach Umorid Hageshem. The date is 22 Tishrei.

Link copied to clipboard
fun isMoridHatalRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Morid Hatal (or the lack of reciting Mashiv Haruach following nussach Ashkenaz) is recited. This period starts on the 15th day of Nissan and ends on 22 HebrewMonth.TISHREI.

Link copied to clipboard
fun isTachanunRecitedMincha(jewishCalendar: JewishCalendar): Boolean

Returns if tachanun is recited during mincha on the day in question.

Link copied to clipboard
fun isTachanunRecitedShacharis(jewishCalendar: JewishCalendar): Boolean

Returns if tachanun is recited during shacharis on the day in question. See the many minhag based settings that are available in this class.

Link copied to clipboard
fun isVeseinBerachaRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Vesein Beracha is recited. It is recited from 15 Nissan to the point that .isVeseinTalUmatarRecited.

Link copied to clipboard
fun isVeseinTalUmatarRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Vesein Tal Umatar Livracha (Sheailas Geshamim) is recited. This will return true for the entire season, even on Shabbos when it is not recited.

Link copied to clipboard
fun isVeseinTalUmatarStartDate(jewishCalendar: JewishCalendar): Boolean

Returns if it is the Jewish day (starting the evening before) to start reciting Vesein Tal Umatar Livracha (Sheailas Geshamim). In Israel this is the 7th day of Marcheshvan. Outside Israel recitation starts on the evening of December 4th (or 5th if it is the year before a civil leap year) in the 21st century and shifts a day forward every century not evenly divisible by 400. This method will return true if vesein tal umatar on the current Jewish date that starts on the previous night, so Dec 5/6 will be returned by this method in the 21st century. vesein tal umatar is not recited on Shabbos and the start date will be delayed a day when the start day is on a Shabbos (this can only occur out of Israel).

Link copied to clipboard
fun isVeseinTalUmatarStartingTonight(jewishCalendar: JewishCalendar): Boolean

Returns if true if tonight is the first night to start reciting Vesein Tal Umatar Livracha ( Sheailas Geshamim). In Israel this is the 7th day of Marcheshvan (so the 6th will return true). Outside Israel recitation starts on the evening of December 4th (or 5th if it is the year before a civil leap year) in the 21st century and shifts a day forward every century not evenly divisible by 400. Vesein tal umatar is not recited on Shabbos and the start date will be delayed a day when the start day is on a Shabbos (this can only occur out of Israel).

Link copied to clipboard
fun isYaalehVeyavoRecited(jewishCalendar: JewishCalendar): Boolean

Returns if Yaaleh Veyavo is recited on the day in question.