From bca6ddb85542683f229d905636a06fbfc66fbe03 Mon Sep 17 00:00:00 2001 From: KosherJava Date: Tue, 11 Jul 2023 15:15:26 -0400 Subject: [PATCH] Update Tefila method to Use Consistent Spelling Closes #213 Props @Sternbach-Software --- .../zmanim/ComplexZmanimCalendar.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java b/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java index f2e729f6..b05a9c5a 100644 --- a/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java +++ b/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java @@ -2918,6 +2918,19 @@ public Date getSofZmanShmaAteretTorah() { * @see #getShaahZmanisAteretTorah() * @see #setAteretTorahSunsetOffset(double) */ + public Date getSofZmanTfilaAteretTorah() { + return getSofZmanTfila(getAlos72Zmanis(), getTzaisAteretTorah()); + } + + /** + * @see #getSofZmanTfilaAteretTorah() + * @deprecated misspelled method name (all other methods spell tfila witout an H) to be removed in 3.0.0. + * @return the Date of the latest zman krias shema based on this calculation. If the + * calculation can't be computed such as in the Arctic Circle where there is at least one day a year 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. + */ + @Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version public Date getSofZmanTfilahAteretTorah() { return getSofZmanTfila(getAlos72Zmanis(), getTzaisAteretTorah()); } @@ -3786,8 +3799,8 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() { /** * A method that returns "solar" midnight, or the time when the sun is at its nadir. - * Note: this method is experimental and might be removed. + * href="https://en.wikipedia.org/wiki/Nadir">nadir. The current calculation is hallfway between today's + * chatzos hayom and tomorrow's chatzos hayom. * * @return the Date of Solar Midnight (chatzos layla). If the calculation can't be computed such as in * the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it