From 63fa4478c2039765a2a4e4c2723cc6c1eb19259b Mon Sep 17 00:00:00 2001 From: "M. Waisberg" Date: Mon, 20 Jun 2022 22:56:27 +0300 Subject: [PATCH] Add Baal HaTanya times --- .../zmanim/ComprehensiveZmanimCalendar.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kosherjava/zmanim/ComprehensiveZmanimCalendar.java b/src/main/java/com/kosherjava/zmanim/ComprehensiveZmanimCalendar.java index 05866ccb..47c7b6c1 100644 --- a/src/main/java/com/kosherjava/zmanim/ComprehensiveZmanimCalendar.java +++ b/src/main/java/com/kosherjava/zmanim/ComprehensiveZmanimCalendar.java @@ -3717,7 +3717,21 @@ public Instant getPlagHaminchaBaalHatanya() { public Instant getTzaisBaalHatanya() { return getSunsetOffsetByDegrees(ZENITH_6_DEGREES); } - + + /** + * This method returns chatzos (midday) following the opinion of the Baal Hatanya that the day for Jewish halachic + * times start at {@link #getSunriseBaalHatanya() netz amiti (sunrise)} and ends at {@link #getSunsetBaalHatanya() + * shkiah amiti (sunset)}. + * + * @see AstronomicalCalendar#getSunTransit() + * @return the Date of chatzos. If the calculation can't be computed such as in the Arctic Circle where + * there is at least one day where the sun does not rise, and one where it does not set, a null will be + * returned. See detailed explanation on top of the {@link AstronomicalCalendar} documentation. + */ + public Instant getChatzosBaalHatanya() { + return getSunTransit(getSunriseBaalHatanya(), getSunsetBaalHatanya()); + } + /** * This method returns Rav Moshe Feinstein's opinion of the * calculation of sof zman krias shema (latest time to recite Shema in the morning) according to the