TefilaRules class

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 JewishDate.TEVES or Purim Saragossa celebrated on the (17th or) 18th of JewishDate.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,
 JewishDate.TISHREI,
 1); // Rosh Hashana
 System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jd));
 jewishCalendar.setJewishDate(5783,
 JewishDate.ADAR,
 17);
 System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar));
 tr.setTachanunRecitedWeekOfPurim(false);
System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar));

Authors

  • © Y. Paritcher 2019 - 2021
  • © Eliyahu Hershfeld 2019 - 2022

TODO The following items may be added at a future date.

  • Lamnatzaiach
  • Mizmor Lesoda
  • Behab
  • Selichos
  • ...

Constructors

TefilaRules({bool tachanunRecitedEndOfTishrei = true, bool tachanunRecitedWeekAfterShavuos = false, bool tachanunRecited13SivanOutOfIsrael = true, bool tachanunRecitedPesachSheni = false, bool tachanunRecited15IyarOutOfIsrael = true, bool tachanunRecitedMinchaErevLagBaomer = false, bool tachanunRecitedShivasYemeiHamiluim = true, bool tachanunRecitedWeekOfHod = true, bool tachanunRecitedWeekOfPurim = true, bool tachanunRecitedFridays = true, bool tachanunRecitedSundays = true, bool tachanunRecitedMinchaAllYear = true})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tachanunRecited13SivanOutOfIsrael → bool
Is tachanun is recited on the 13th of JewishDate.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 tachanunRecitedWeekAfterShavuos and setTachanunRecited13SivanOutOfIsrael are set to false.
final
tachanunRecited15IyarOutOfIsrael → bool
Is tachanun recited on 15 JewishDate.IYAR (sfaika deyoma of JewishCalendar.PESACH_SHENI) out of Israel. If isTachanunRecitedPesachSheni is true this will be ignored even if false.
final
tachanunRecitedEndOfTishrei → bool
Whether or not tachanun recited at the end Of JewishDate.TISHREI.
final
tachanunRecitedFridays → bool
Is tachanun recited on Fridays. Some chasidishe communities do not recite tachanun on Fridays. See Likutei Maharich Vol 2 Seder Hanhagos Erev Shabbos. This is also the minhag in Satmar. Returns if tachanun is recited on Fridays. See also setTachanunRecitedFridays.
final
tachanunRecitedMinchaAllYear → bool
Is tachanun recited in Mincha the entire year. Some chasidishe communities do not recite tachanun by Mincha all year round. SeeNemukei Orach Chaim 131:3. Returns if tachanun is recited in Mincha the entire year. See also setTachanunRecitedMinchaAllYear.
final
tachanunRecitedMinchaErevLagBaomer → bool
Is tachanun recited on mincha on erev JewishCalendar.LAG_BAOMER. Returns if tachanun is recited in mincha on erev JewishCalendar.LAG_BAOMER. See also setTachanunRecitedMinchaErevLagBaomer.
final
tachanunRecitedPesachSheni → bool
Is tachanun recited on JewishCalendar.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 Devlitzky's comments).
final
tachanunRecitedShivasYemeiHamiluim → bool
Is tachanun recited during the Shivas Yemei Hamiluim, from the 23 of {@link JewishDate#ADAR Adar} on a non-leap-year or JewishDate.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. Returns if tachanun is recited during the Shivas Yemei Hamiluim, from the 23 of {@link JewishDate#ADAR Adar} on a non-leap-year or JewishDate.ADAR_II on a leap year to the end of the month. See also setTachanunRecitedShivasYemeiHamiluim.
final
tachanunRecitedSundays → bool
Is tachanun recited on Sundays. Some chasidishe communities do not recite tachanun on Sundays. See Likutei Maharich Vol 2 Seder Hanhagos Erev Shabbos. Returns if tachanun is recited on Sundays. See also setTachanunRecitedSundays.
final
tachanunRecitedWeekAfterShavuos → bool
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.
final
tachanunRecitedWeekOfHod → bool
Is tachanun recited during the sefira week of Hod (14 - 20 JewishDate.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. Returns If tachanun is set to be recited during the sefira week of Hod (14 - 20 {@link JewishDate#IYAR Iyar}, or the 29th - 35th of the JewishCalendar.getDayOfOmer). See also setTachanunRecitedWeekOfHod.
final
tachanunRecitedWeekOfPurim → bool
Is tachanun recited during the week of Purim, from the 11th through the 17th of {@link JewishDate#ADAR Adar} (on a non-leap year, or JewishDate.ADAR_II on a leap year). Some chasidishe communities do not recite tachanun during this period. See the Minhag Yisrael Torah 131 and Darkei Chaim Veshalom 191who discuss the minhag not to recite tachanun. Also see the Mishmeres Shalom (Hadras Shalom) who discusses the minhag of not reciting it on the 16th and 17th. Returns If tachanun is set to be recited during the week of Purim from the 11th through the 17th of {@link JewishDate#ADAR Adar} (on a non-leap year, or JewishDate.ADAR_II on a leap year). See also setTachanunRecitedWeekOfPurim.
final

Methods

isHallelRecited(JewishCalendar jewishCalendar) → bool
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.
isHallelShalemRecited(JewishCalendar jewishCalendar) → bool
Returns if hallel shalem is recited on the day in question. This will always return false if {@link #isHallelRecited(JewishCalendar)} returns false.
isMashivHaruachEndDate(JewishCalendar jewishCalendar) → bool
Returns if the date is the end date for reciting Mashiv Haruach Umorid Hageshem. The date is 15 JewishDate.NISSAN.
isMashivHaruachRecited(JewishCalendar jewishCalendar) → bool
Returns if Mashiv Haruach Umorid Hageshem is recited. This period starts on 22 {@link JewishDate#TISHREI Tishrei} and ends on the 15th day of JewishDate.NISSAN.
isMashivHaruachStartDate(JewishCalendar jewishCalendar) → bool
Returns if the date is the start date for reciting Mashiv Haruach Umorid Hageshem. The date is 22 JewishDate.TISHREI.
isMoridHatalRecited(JewishCalendar jewishCalendar) → bool
Returns if Morid Hatal (or the lack of reciting Mashiv Haruach following nussach Ashkenaz) is recited. This period starts on the 15th day of JewishDate.NISSAN and ends on 22 {@link JewishDate#TISHREI Tishrei}.
isTachanunRecitedMincha(JewishCalendar jewishCalendar) → bool
Returns if tachanun is recited during mincha on the day in question.
isTachanunRecitedShacharis(JewishCalendar jewishCalendar) → bool
Returns if tachanun is recited during shacharis on the day in question. See the many minhag based settings that are available in this class.
isVeseinBerachaRecited(JewishCalendar jewishCalendar) → bool
Returns if Vesein Beracha is recited. It is recited from 15 JewishDate.NISSAN to the point that isVeseinTalUmatarRecited.
isVeseinTalUmatarRecited(JewishCalendar jewishCalendar) → bool
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.
isVeseinTalUmatarStartDate(JewishCalendar jewishCalendar) → bool
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 JewishDate.CHESHVAN. 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).
isVeseinTalUmatarStartingTonight(JewishCalendar jewishCalendar) → bool
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 JewishDate.CHESHVAN (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).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited