Skip to content

Commit bca6ddb

Browse files
authored
Update Tefila method to Use Consistent Spelling
Closes #213 Props @Sternbach-Software
1 parent d24323b commit bca6ddb

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,6 +2918,19 @@ public Date getSofZmanShmaAteretTorah() {
29182918
* @see #getShaahZmanisAteretTorah()
29192919
* @see #setAteretTorahSunsetOffset(double)
29202920
*/
2921+
public Date getSofZmanTfilaAteretTorah() {
2922+
return getSofZmanTfila(getAlos72Zmanis(), getTzaisAteretTorah());
2923+
}
2924+
2925+
/**
2926+
* @see #getSofZmanTfilaAteretTorah()
2927+
* @deprecated misspelled method name (all other methods spell tfila witout an H) to be removed in 3.0.0.
2928+
* @return the <code>Date</code> of the latest <em>zman krias shema</em> based on this calculation. If the
2929+
* calculation can't be computed such as in the Arctic Circle where there is at least one day a year where
2930+
* the sun does not rise, and one where it does not set, a null will be returned. See detailed explanation
2931+
* on top of the {@link AstronomicalCalendar} documentation.
2932+
*/
2933+
@Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version
29212934
public Date getSofZmanTfilahAteretTorah() {
29222935
return getSofZmanTfila(getAlos72Zmanis(), getTzaisAteretTorah());
29232936
}
@@ -3786,8 +3799,8 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() {
37863799

37873800
/**
37883801
* A method that returns "solar" midnight, or the time when the sun is at its <a
3789-
* href="https://en.wikipedia.org/wiki/Nadir">nadir</a>.
3790-
* <b>Note:</b> this method is experimental and might be removed.
3802+
* href="https://en.wikipedia.org/wiki/Nadir">nadir</a>. The current calculation is hallfway between today's
3803+
* <em>chatzos hayom</em> and tomorrow's <em>chatzos hayom</em>.
37913804
*
37923805
* @return the <code>Date</code> of Solar Midnight (chatzos layla). If the calculation can't be computed such as in
37933806
* the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it

0 commit comments

Comments
 (0)