diff --git a/src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java b/src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java
index 02b8bd78..b877aecb 100644
--- a/src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java
+++ b/src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java
@@ -39,7 +39,7 @@
* {@link java.util.Date}
is expected and {@link Long#MIN_VALUE} when a long
is expected. The
* reason that Exception
s are not thrown in these cases is because the lack of a rise/set or twilight is
* not an exception, but an expected condition in many parts of the world.
- *
+ *
* Here is a simple example of how to use the API to calculate sunrise.
* First create the Calendar for the location you would like to calculate sunrise or sunset times for:
*
@@ -107,12 +107,12 @@ public class AstronomicalCalendar implements Cloneable {
private AstronomicalCalculator astronomicalCalculator;
/**
- * The getSunrise method Returns a Date
representing the
+ * The getSunrise method returns a Date
representing the
* {@link AstronomicalCalculator#getElevationAdjustment(double) elevation adjusted} sunrise time. The zenith used
* for the calculation uses {@link #GEOMETRIC_ZENITH geometric zenith} of 90° plus
* {@link AstronomicalCalculator#getElevationAdjustment(double)}. This is adjusted by the
- * {@link AstronomicalCalculator} to add approximately 50/60 of a degree to account for 34 archminutes of refraction
- * and 16 archminutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith 90.83333°}.
+ * {@link AstronomicalCalculator} to add approximately 50/60 of a degree to account for 34 arch minutes of refraction
+ * and 16 arch minutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith 90.83333°}.
* See documentation for the specific implementation of the {@link AstronomicalCalculator} that you are using.
*
* @return the Date
representing the exact sunrise time. If the calculation can't be computed such as
@@ -192,12 +192,12 @@ public Date getBeginAstronomicalTwilight() {
}
/**
- * The getSunset method Returns a Date
representing the
+ * The getSunset method returns a Date
representing the
* {@link AstronomicalCalculator#getElevationAdjustment(double) elevation adjusted} sunset time. The zenith used for
* the calculation uses {@link #GEOMETRIC_ZENITH geometric zenith} of 90° plus
* {@link AstronomicalCalculator#getElevationAdjustment(double)}. This is adjusted by the
- * {@link AstronomicalCalculator} to add approximately 50/60 of a degree to account for 34 archminutes of refraction
- * and 16 archminutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith 90.83333°}.
+ * {@link AstronomicalCalculator} to add approximately 50/60 of a degree to account for 34 arch minutes of refraction
+ * and 16 arch minutes for the sun's radius for a total of {@link AstronomicalCalculator#adjustZenith 90.83333°}.
* See documentation for the specific implementation of the {@link AstronomicalCalculator} that you are using. Note:
* In certain cases the calculates sunset will occur before sunrise. This will typically happen when a timezone
* other than the local timezone is used (calculating Los Angeles sunset using a GMT timezone for example). In this
@@ -367,8 +367,8 @@ public AstronomicalCalendar() {
/**
* A constructor that takes in geolocation information as a
* parameter. The default {@link AstronomicalCalculator#getDefault() AstronomicalCalculator} used for solar
- * calculations is the the {@link com.kosherjava.zmanim.util.NOAACalculator}.
- *
+ * calculations is the more accurate {@link com.kosherjava.zmanim.util.NOAACalculator}.
+ *
* @param geoLocation
* The location information used for calculating astronomical sun times.
*
@@ -470,7 +470,7 @@ public long getTemporalHour() {
* non-elevation adjusted temporal hour by passing in {@link #getSeaLevelSunrise() sea level sunrise} and
* {@link #getSeaLevelSunset() sea level sunset} as parameters.
*
- * @param startOfday
+ * @param startOfDay
* The start of the day.
* @param endOfDay
* The end of the day.
@@ -480,11 +480,11 @@ public long getTemporalHour() {
*
* @see #getTemporalHour()
*/
- public long getTemporalHour(Date startOfday, Date endOfDay) {
- if (startOfday == null || endOfDay == null) {
+ public long getTemporalHour(Date startOfDay, Date endOfDay) {
+ if (startOfDay == null || endOfDay == null) {
return Long.MIN_VALUE;
}
- return (endOfDay.getTime() - startOfday.getTime()) / 12;
+ return (endOfDay.getTime() - startOfDay.getTime()) / 12;
}
/**
@@ -562,8 +562,8 @@ public Date getSunTransit(Date startOfDay, Date endOfDay) {
* @param time
* The time to be set as the time for the Date
. The time expected is in the format: 18.75
* for 6:45:00 PM.time is sunrise and false if it is sunset
- * @param isSunrise true if the
- * @return The Date.
+ * @param isSunrise true if this time is for sunrise
+ * @return The Date object representation of the time double
*/
protected Date getDateFromTime(double time, boolean isSunrise) {
if (Double.isNaN(time)) {
@@ -685,7 +685,7 @@ public Date getLocalMeanTime(double hours) {
}
/**
- * Adjusts the Calendar
to deal with edge cases where the location crosses the antimeridian.
+ * Adjusts the Calendar
to deal with edge cases where the location crosses the anti meridian.
*
* @see GeoLocation#getAntimeridianAdjustment()
* @return the adjusted Calendar
@@ -786,7 +786,7 @@ public AstronomicalCalculator getAstronomicalCalculator() {
* different algorithms, including the default {@link com.kosherjava.zmanim.util.NOAACalculator} based on NOAA's implementation of Jean Meeus's algorithms as well as {@link
* com.kosherjava.zmanim.util.SunTimesCalculator} based on the US
- * Naval Observatory's algorithm,. This allows easy runtime switching and comparison of different algorithms.
+ * Naval Observatory's algorithm. This allows easy runtime switching and comparison of different algorithms.
*
* @param astronomicalCalculator
* The astronomicalCalculator to set.
diff --git a/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java b/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java
index 1adca8f2..49f784f0 100644
--- a/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java
+++ b/src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java
@@ -28,7 +28,7 @@
* As an example of the number of different zmanim made available by this class, there are methods to return 18
* different calculations for alos (dawn), 18 for plag hamincha and 29 for tzais available in this
* API. The real power of this API is the ease in calculating zmanim that are not part of the library. The methods for
- * zmanim calculations not present in this class or it's superclass {@link ZmanimCalendar} are contained in the
+ * zmanim calculations not present in this class, or it's superclass {@link ZmanimCalendar} are contained in the
* {@link AstronomicalCalendar}, the base class of the calendars in our API since they are generic methods for calculating
* time based on degrees or time before or after {@link #getSunrise sunrise} and {@link #getSunset sunset} and are of interest
* for calculation beyond zmanim calculations. Here are some examples.
@@ -84,7 +84,7 @@
* czc.getSunsetOffsetByDegrees({@link AstronomicalCalendar#GEOMETRIC_ZENITH} + ZENITH_7_POINT_083));
*
* Something a drop more challenging, but still simple, would be calculating a zman using the same "complex" - * offset day used in the above mentioned Manchester calendar, but for a shaos zmaniyos based zman not + * offset day used in the above-mentioned Manchester calendar, but for a shaos zmaniyos based zman not * supported by this library, such as calculating the point that one should be makpid * not to eat on erev Shabbos or erev Yom Tov. This is 9 shaos zmaniyos into the day. *
- * Date sofZamnAchila = czc.getTimeOffset(czc.getSunrise(), czc.getShaahZmanisGra() * 9);+ * Date sofZmanAchila = czc.getTimeOffset(czc.getSunrise(), czc.getShaahZmanisGra() * 9); * *
long
millisecond length of a shaah zmanis. If the calculation can't be computed
@@ -679,7 +679,7 @@ public long getShaahZmanisAteretTorah() {
* luach of the Bais Horaah of Yeshivat Chevrat Ahavat Shalom that is based on a day starting 72 minutes before
* sunrise in degrees {@link #getAlos16Point1Degrees() alos 16.1°} and ending 14 minutes after sunset in
* degrees {@link #getTzaisGeonim3Point8Degrees() tzais 3.8°}. This day is split into 12 equal parts with
- * each part being a shaah zmanis. Note that with this system, chatzos (mid-day) will not be the point
+ * each part being a shaah zmanis. Note that with this system, chatzos (midday) will not be the point
* that the sun is {@link #getSunTransit() halfway across the sky}. These shaos zmaniyos are used for Mincha
* Ketana and Plag Hamincha. The 14 minutes are based on 3/4 of an 18 minute mil, with half a minute
* added for Rav Yosi.
@@ -702,7 +702,7 @@ public long getShaahZmanisAlos16Point1ToTzais3Point8() {
* luach of the Bais Horaah of Yeshivat Chevrat Ahavat Shalom that is based on a day starting 72 minutes before
* sunrise in degrees {@link #getAlos16Point1Degrees() alos 16.1°} and ending 13.5 minutes after sunset in
* degrees {@link #getTzaisGeonim3Point7Degrees() tzais 3.7°}. This day is split into 12 equal parts with
- * each part being a shaah zmanis. Note that with this system, chatzos (mid-day) will not be the point
+ * each part being a shaah zmanis. Note that with this system, chatzos (midday) will not be the point
* that the sun is {@link #getSunTransit() halfway across the sky}. These shaos zmaniyos are used for Mincha
* Gedola calculation.
*
@@ -834,7 +834,7 @@ public Date getPlagHamincha120Minutes() {
* "https://en.wikipedia.org/wiki/Yair_Bacharach">Chavas Yair in the Mekor Chaim, Orach Chaim Ch.
* 90, though the Mekor Chaim in Ch. 58 and in the Chut Hashani Cha 97 states that
- * a a person walks 3 and a 1/3 mil in an hour, or an 18-minute mil. Also see the mil in an hour, or an 18-minute mil. Also see the Divrei Malkiel Vol. 4, Ch. 20, page 34) who
* mentions the 15 minute mil lechumra by baking matzos. Also see the alos (dawn) calculated using 72 minutes zmaniyos or 1/10th of the day before
* sunrise. This is based on an 18-minute Mil so the time for 4 Mil is 72 minutes which is 1/10th
- * of a day (12 * 60 = 720) based on the a day being from {@link #getSeaLevelSunrise() sea level sunrise} to
- * {@link #getSeaLevelSunrise sea level sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset}
+ * of a day (12 * 60 = 720) based on the day being from {@link #getSeaLevelSunrise() sea level sunrise} to
+ * {@link #getSeaLevelSunset() sea level sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset}
* (depending on the {@link #isUseElevation()} setting).
* The actual calculation is {@link #getSeaLevelSunrise()} - ({@link #getShaahZmanisGra()} * 1.2). This calculation
* is used in the calendars published by the alos (dawn) calculated using 96 minutes before before {@link #getSunrise() sunrise} or
+ * Method to return alos (dawn) calculated using 96 minutes before {@link #getSunrise() sunrise} or
* {@link #getSeaLevelSunrise() sea level sunrise} (depending on the {@link #isUseElevation()} setting) that is based
* on the time to walk the distance of 4 Mil at 24 minutes a Mil. Time based offset
* calculations for alos are based on the opinion of the Mil so the time for 5 Mil is 120 minutes which is 1/6th of a day (12 * 60 /
* 6 = 120). The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link
- * #getSeaLevelSunrise sea level sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending
+ * #getSeaLevelSunset() sea level sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending
* on the {@link #isUseElevation()}. The actual calculation used is {@link #getSunrise()} - ({@link
* #getShaahZmanisGra()} * 2). Since this time is extremely early, it should only be used lechumra, such
* as not eating after this time on a fast day, and not as the start time for mitzvos that can only be
@@ -1777,7 +1777,7 @@ public Date getSofZmanTfila2HoursBeforeChatzos() {
* and not 1/2 of a {@link #getShaahZmanisGra() shaah zmanis} after {@link #getChatzos() chatzos} as
* calculated by {@link #getMinchaGedola}. Some use this time to delay the start of mincha in the winter when
* 1/2 of a {@link #getShaahZmanisGra() shaah zmanis} is less than 30 minutes. See
- * {@link #getMinchaGedolaGreaterThan30()} for a convenience method that returns the later of the 2 calculations. One
+ * {@link #getMinchaGedolaGreaterThan30()} for a convenience method that returns the latter of the 2 calculations. One
* should not use this time to start mincha before the standard {@link #getMinchaGedola() mincha gedola}.
* See Shulchan Aruch Orach Chayim 234:1 and
* the Shaar Hatziyon seif katan ches. Since this calculation is a fixed 30 minutes of regular clock time after
@@ -1858,10 +1858,10 @@ public Date getMinchaGedola16Point1Degrees() {
* This method returns the time of mincha gedola based on the opinion of Rabbi Yaakov Moshe Hillel as published in the luach
* of the Bais Horaah of Yeshivat Chevrat Ahavat Shalom that mincha gedola is calculated as half a shaah
- * zmanis after chatzos with shaos zmaniyos calculated based on a day starting 72 minutes befoe sunrise
+ * zmanis after chatzos with shaos zmaniyos calculated based on a day starting 72 minutes before sunrise
* {@link #getAlos16Point1Degrees() alos 16.1°} and ending 13.5 minutes after sunset {@link
* #getTzaisGeonim3Point7Degrees() tzais 3.7°}. Mincha gedola is the earliest time to pray mincha.
- * The later of this time or 30 clock minutes after chatzos is returned. See {@link #getMinchaGedolaGreaterThan30()}
+ * The latter of this time or 30 clock minutes after chatzos is returned. See {@link #getMinchaGedolaGreaterThan30()}
* (though that calculation is based on mincha gedola GRA).
* For more information about mincha gedola see the documentation on {@link #getMinchaGedola() mincha gedola}.
* Since calculation of this zman involves chatzos that is offset from the center of the astronomical day,
@@ -1886,7 +1886,7 @@ public Date getMinchaGedolaAhavatShalom() {
}
/**
- * FIXME check for syncronous
+ * FIXME check for synchronous
* This is a convenience method that returns the later of {@link #getMinchaGedola()} and
* {@link #getMinchaGedola30Minutes()}. In the winter when 1/2 of a {@link #getShaahZmanisGra() shaah zmanis} is
* less than 30 minutes {@link #getMinchaGedola30Minutes()} will be returned, otherwise {@link #getMinchaGedola()}
@@ -1894,7 +1894,7 @@ public Date getMinchaGedolaAhavatShalom() {
* zmanis), even if {@link #isUseAstronomicalChatzosForOtherZmanim()} is false
, this mincha time
* may be affected by {@link #isUseAstronomicalChatzos()}.
*
- * @return the Date
of the later of {@link #getMinchaGedola()} and {@link #getMinchaGedola30Minutes()}.
+ * @return the Date
of the latter of {@link #getMinchaGedola()} and {@link #getMinchaGedola30Minutes()}.
* 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.
@@ -1942,7 +1942,7 @@ public Date getMinchaKetana16Point1Degrees() {
* the opinion of the Rambam and others. For more information
* on this see the documentation on {@link #getMinchaKetana() mincha ketana}.
*
- * @return the the Date
of the time of mincha ketana. If the calculation can't be computed such as
+ * @return the Date
of the time of mincha ketana. If the calculation can't be computed such as
* northern and southern locations even south of the Arctic Circle and north of the Antarctic Circle where the
* sun may not reach low enough below the horizon for this calculation, a null
will be returned.
* See detailed explanation on top of the {@link AstronomicalCalendar} documentation.
@@ -2637,8 +2637,8 @@ public Date getTzaisGeonim5Point95Degrees() {
/**
* This method returns the tzais (nightfall) based on the opinion of the Geonim calculated as 3/4
- * of a Mil based on an 18
- * minute Mil, or 13.5 minutes. It is the sun's position at {@link #ZENITH_3_POINT_65 3.65°} below the western
+ * of a Mil based on an
+ * 18-minute Mil, or 13.5 minutes. It is the sun's position at {@link #ZENITH_3_POINT_65 3.65°} below the western
* horizon. This is a very early zman and should not be relied on without Rabbinical guidance.
*
* @return the Date
representing the time when the sun is 3.65° below sea level. If the calculation
@@ -2658,8 +2658,8 @@ public Date getTzaisGeonim3Point65Degrees() {
/**
* This method returns the tzais (nightfall) based on the opinion of the Geonim calculated as 3/4
- * of a Mil based on an 18
- * minute Mil, or 13.5 minutes. It is the sun's position at {@link #ZENITH_3_POINT_676 3.676°} below the western
+ * of a Mil based on an
+ * 18-minute Mil, or 13.5 minutes. It is the sun's position at {@link #ZENITH_3_POINT_676 3.676°} below the western
* horizon based on the calculations of Stanley Fishkind. This is a very early zman and should not be
* relied on without Rabbinical guidance.
*
@@ -2735,7 +2735,7 @@ public Date getTzaisGeonim5Point88Degrees() {
* This method returns the tzais (nightfall) based on the opinion of the Geonim calculated as 3/4
* of a Mil based on the
* sun's position at {@link #ZENITH_4_POINT_8 4.8°} below the western horizon. This is based on Rabbi Leo Levi's
- * calculations. This is the This is a very early zman and should not be relied on without Rabbinical guidance.
+ * calculations. This is a very early zman and should not be relied on without Rabbinical guidance.
* @todo Additional documentation needed.
*
* @return the Date
representing the time when the sun is 4.8° below sea level. If the calculation
@@ -2773,7 +2773,7 @@ public Date getTzaisGeonim6Point45Degrees() {
/**
* This method returns the tzais (nightfall) based on the opinion of the Geonim calculated when the
* sun's position {@link #ZENITH_7_POINT_083 7.083° (or 7° 5\u2032}) below the western horizon. This is often
- * referred to as 7°5' or 7° and 5 minutes. This calculation is based on the observation of 3 medium sized
+ * referred to as 7°5' or 7° and 5 minutes. This calculation is based on the observation of 3 medium-sized
* stars by Dr. Baruch (Berthold) Cohn in his luach Tabellen enthaltend die Zeitangaben für
* den Beginn der Nacht und des Tages für die Breitengrade + 66 bis -38 published in Strasbourg, France in 1899.
@@ -2887,7 +2887,7 @@ public Date getTzaisGeonim9Point75Degrees() {
* "https://he.wikipedia.org/wiki/%D7%9E%D7%9C%D7%9B%D7%99%D7%90%D7%9C_%D7%A6%D7%91%D7%99_%D7%98%D7%A0%D7%A0%D7%91%D7%95%D7%99%D7%9D"
* >Divrei Malkiel that the time to walk the distance of a Mil is 15 minutes for a total of 60 minutes
* for 4 Mil after {@link #getSeaLevelSunset() sea level sunset}. See detailed documentation explaining the
- * 60 minute concept at {@link #getAlos60()}.
+ * 60-minute concept at {@link #getAlos60()}.
*
* @return the Date
representing 60 minutes after sea level sunset. 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,
@@ -2905,10 +2905,10 @@ public Date getTzais60() {
/**
* This method returns tzais usually calculated as 40 minutes (configurable to any offset via
* {@link #setAteretTorahSunsetOffset(double)}) after sunset. Please note that Chacham Yosef Harari-Raful
- * of Yeshivat Ateret Torah who uses this time, does so only for calculating various other zmanai hayom
+ * of Yeshivat Ateret Torah who uses this time, does so only for calculating various other zmanei hayom
* such as Sof Zman Krias Shema and Plag Hamincha. His calendars do not publish a zman
* for Tzais. It should also be noted that Chacham Harari-Raful provided a 25 minute zman
- * for Israel. This API uses 40 minutes year round in any place on the globe by default. This offset can be change
+ * for Israel. This API uses 40 minutes year round in any place on the globe by default. This offset can be changed
* by calling {@link #setAteretTorahSunsetOffset(double)}.
*
* @return the Date
representing 40 minutes (configurable via {@link #setAteretTorahSunsetOffset})
@@ -2937,7 +2937,7 @@ public double getAteretTorahSunsetOffset() {
/**
* Allows setting the offset in minutes after sunset for the Ateret Torah zmanim. The default if unset is
* 40 minutes. Chacham Yosef Harari-Raful of Yeshivat Ateret Torah uses 40 minutes globally with the exception
- * of Israel where a 25 minute offset is used. This 40 minute (or any other) offset can be overridden by this method.
+ * of Israel where a 25-minute offset is used. This 40 minute (or any other) offset can be overridden by this method.
* This offset impacts all Ateret Torah zmanim.
*
* @param ateretTorahSunsetOffset
@@ -2998,7 +2998,7 @@ public Date getSofZmanTfilaAteretTorah() {
/**
* @see #getSofZmanTfilaAteretTorah()
- * @deprecated misspelled method name (all other methods spell tfila witout an H) to be removed in 3.0.0.
+ * @deprecated misspelled method name (all other methods spell tfila without 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
@@ -3093,7 +3093,7 @@ public Date getPlagHaminchaAteretTorah() {
* time of tzeis. It should be noted that this calculation results in the shortest time from sunset to
* tzais being during the winter solstice, the longest at the summer solstice and 72 clock minutes at the
* equinox. This does not match reality, since there is no direct relationship between the length of the day and
- * twilight. The shortest twilight is during the equinox, the longest is during the the summer solstice, and in the
+ * twilight. The shortest twilight is during the equinox, the longest is during the summer solstice, and in the
* winter with the shortest daylight, the twilight period is longer than during the equinoxes.
*
* @return the Date
representing the time. If the calculation can't be computed such as in the Arctic
@@ -3108,7 +3108,7 @@ public Date getTzais72Zmanis() {
/**
* A utility method to return alos (dawn) or tzais (dusk) based on a fractional day offset.
- * @param hours the number of shaaos zmaniyos (temporal hours) before sunrise or after sunset that defines dawn
+ * @param hours the number of shaos zmaniyos (temporal hours) before sunrise or after sunset that defines dawn
* or dusk. If a negative number is passed in, it will return the time of alos (dawn) (subtracting the
* time from sunrise) and if a positive number is passed in, it will return the time of tzais (dusk)
* (adding the time to sunset). If 0 is passed in, a null
will be returned (since we can't tell if it
@@ -3209,7 +3209,7 @@ public Date getTzais120() {
/**
* This method should be used lechumra only and returns tzais (dusk) calculated using 120 minutes
* zmaniyos after {@link #getSeaLevelSunset() sea level sunset}. Since the zman
- * is extremely late and at a point when the it is long past the 18° point where the darkest point is
+ * is extremely late and at a point when it is long past the 18° point where the darkest point is
* reached, it should only be used lechumra, such as delaying the start of nighttime mitzvos.
*
* @deprecated This method should be used lechumra only since it returns a very late time, and if used
@@ -3344,8 +3344,8 @@ public Date getFixedLocalChatzos() {
* A method that returns the latest zman krias shema (time to recite Shema in the morning) calculated as 3
* clock hours before {@link #getFixedLocalChatzos()}. Note that there are opinions brought down in Yisrael Vehazmanim
* page 57 and Rav Yitzchak Silber's Sha'aos Shavos Balalacha that this calculation is a mistake and regular
- * chatzos shoud be used for clock-hour calculations as opposed to fixed local chatzos. According to
+ * "https://www.worldcat.org/oclc/811253716">Sha'aos Shavos Bahalacha that this calculation is a mistake and regular
+ * chatzos should be used for clock-hour calculations as opposed to fixed local chatzos. According to
* these opinions it should be 3 clock hours before regular chatzos as calculated in {@link
* #getSofZmanShma3HoursBeforeChatzos()}.
*
@@ -3357,7 +3357,7 @@ public Date getFixedLocalChatzos() {
*
* @deprecated This method of calculating sof zman Shma is considered a mistaken understanding of the proper
* calculation of this zman in the opinion of Rav Yitzchak Silber's Sha'aos Shavos Balalacha. On pages 316-318 he discusses Rav Yisrael
+ * "https://www.worldcat.org/oclc/811253716">Sha'aos Shavos Bahalacha. On pages 316-318 he discusses Rav Yisrael
* Harfenes's calculations and points to his seeming agreement that using fixed local chatzos as the focal
* point is problematic. See Yisrael Vehazmanim page 57. While the Yisrael Vehazmanim mentions
@@ -3384,7 +3384,7 @@ public Date getSofZmanShmaFixedLocal() {
*
* @deprecated This method of calculating sof zman Tfila is considered a mistaken understanding of the proper
* calculation of this zman in the opinion of Rav Yitzchak Silber's Sha'aos Shavos Balalacha. On pages 316-318 he discusses Rav Yisrael
+ * "https://www.worldcat.org/oclc/811253716">Sha'aos Shavos Bahalacha. On pages 316-318 he discusses Rav Yisrael
* Harfenes's calculations and points to his seeming agreement that using fixed local chatzos as the focal
* point is problematic. See Yisrael Vehazmanim page 57. While the Yisrael Vehazmanim mentions
@@ -3451,7 +3451,7 @@ public Date getSofZmanKidushLevanaBetweenMoldos(Date alos, Date tzais) {
* optional end of day to limit molad times to the end of the night before or beginning of the next night.
* Ignored if either tzais or alos are null
* @param techila
- * is it the start of Kiddush Levana time or the end? If it is start roll it to the next tzais, and
+ * is it the start of Kiddush Levana time or the end? If it is start roll it to the next tzais,
* and if it is the end, return the end of the previous night (alos passed in). Ignored if either
* alos or tzais are null.
* @return the molad based time. If the zman does not occur during the current date, null
will be
@@ -3459,8 +3459,8 @@ public Date getSofZmanKidushLevanaBetweenMoldos(Date alos, Date tzais) {
*/
private Date getMoladBasedTime(Date moladBasedTime, Date alos, Date tzais, boolean techila) {
Date lastMidnight = getMidnightLastNight();
- Date midnightTonigh = getMidnightTonight();
- if (!(moladBasedTime.before(lastMidnight) || moladBasedTime.after(midnightTonigh))){
+ Date midnightTonight = getMidnightTonight();
+ if (!(moladBasedTime.before(lastMidnight) || moladBasedTime.after(midnightTonight))){
if (alos != null || tzais != null) {
if (techila && !(moladBasedTime.before(tzais) || moladBasedTime.after(alos))){
return tzais;
@@ -3781,7 +3781,7 @@ public Date getSofZmanAchilasChametzGRA() {
*
* @return the Date
of the latest time of eating chametz. If it is not erev Pesach or 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
+ * not rise, and one where it does not set, a null
will be returned. See detailed explanation on top of
* the {@link AstronomicalCalendar} documentation.
* @todo in v 3.0.0 enable the calendar check for erev pesach and return null
in all other cases.
* @see #getShaahZmanisMGA()
@@ -3831,7 +3831,7 @@ public Date getSofZmanAchilasChametzMGA16Point1Degrees() {
}
/**
- * FIXME adjust for syncronous
+ * FIXME adjust for synchronous
* This method returns the latest time for burning chametz on Erev Pesach according to the opinion
* of the GRA. This time is 5 hours into the day based on the
* opinion of the GRA that the day is calculated from
@@ -3857,7 +3857,7 @@ public Date getSofZmanBiurChametzGRA() {
}
/**
- * FIXME adjust for syncronous
+ * FIXME adjust for synchronous
* This method returns the latest time for burning chametz on Erev Pesach according to the opinion of
* the Magen Avraham (MGA) based on alos
* being {@link #getAlos72() 72} minutes before {@link #getSunrise() sunrise}. This time is 5 {@link
@@ -3868,7 +3868,7 @@ public Date getSofZmanBiurChametzGRA() {
* @todo in v 3.0.0 enable the calendar check for erev pesach and return null
in all other cases.
* @return the Date
of the latest time for burning chametz on Erev Pesach. If it is not
* erev Pesach or 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
+ * 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.
* @see #getShaahZmanisMGA()
* @see #getAlos72()
@@ -3886,7 +3886,7 @@ public Date getSofZmanBiurChametzMGA72Minutes() {
}
/**
- * FIXME adjust for syncronous
+ * FIXME adjust for synchronous
* This method returns the latest time for burning chametz on Erev Pesach according to the opinion
* of the Magen Avraham (MGA) based on alos
* being {@link #getAlos16Point1Degrees() 16.1°} before {@link #getSunrise() sunrise}. This time is 5
@@ -3921,7 +3921,7 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() {
* netz amiti (sunrise) without {@link AstronomicalCalculator#getElevationAdjustment(double)
* elevation adjustment}. This forms the base for the Baal Hatanya's dawn-based calculations that are
* calculated as a dip below the horizon before sunrise.
- *
+ * * According to the Baal Hatanya, netz amiti, or true (halachic) sunrise, is when the top of the sun's * disk is visible at an elevation similar to the mountains of Eretz Yisrael. The time is calculated as the point at which * the center of the sun's disk is 1.583° below the horizon. This degree-based calculation can be found in Rabbi Shalom @@ -3936,7 +3936,7 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() { * "https://en.wikipedia.org/wiki/Chabad">Chabad calendars that use the Baal Hatanya's zmanim. See * About Our * Zmanim Calculations @ Chabad.org. - * + *
* Note: netz amiti is used only for calculating certain zmanim, and is intentionally unpublished. For * practical purposes, daytime mitzvos like shofar and lulav should not be done until after the * published time for netz / sunrise. @@ -3959,14 +3959,14 @@ private Date getSunriseBaalHatanya() { * shkiah amiti (sunset) without {@link AstronomicalCalculator#getElevationAdjustment(double) * elevation adjustment}. This forms the base for the Baal Hatanya's dusk-based calculations that are calculated * as a dip below the horizon after sunset. - * + *
* According to the Baal Hatanya, shkiah amiti, true (halachic) sunset, is when the top of the * sun's disk disappears from view at an elevation similar to the mountains of Eretz Yisrael. * This time is calculated as the point at which the center of the sun's disk is 1.583 degrees below the horizon. - * + *
* Note: shkiah amiti is used only for calculating certain zmanim, and is intentionally unpublished. For * practical purposes, all daytime mitzvos should be completed before the published time for shkiah / sunset. - * + *
* For further explanation of the calculations used for the Baal Hatanya's zmanim in this library, see
* About Our
* Zmanim Calculations @ Chabad.org.
@@ -4143,7 +4143,7 @@ public Date getMinchaGedolaBaalHatanya() {
}
/**
- * FIXME syncronous
+ * FIXME synchronous
* This is a convenience method that returns the later of {@link #getMinchaGedolaBaalHatanya()} and
* {@link #getMinchaGedola30Minutes()}. In the winter when 1/2 of a {@link #getShaahZmanisBaalHatanya()
* shaah zmanis} is less than 30 minutes {@link #getMinchaGedola30Minutes()} will be returned, otherwise
@@ -4151,7 +4151,7 @@ public Date getMinchaGedolaBaalHatanya() {
* @todo Consider adjusting this to calculate the time as 30 clock or zmaniyos minutes after either {@link
* #getSunTransit() astronomical chatzos} or {@link #getChatzosAsHalfDay() chatzos as half a day}
* for {@link AstronomicalCalculator calculators} that support it, based on {@link #isUseAstronomicalChatzos()}.
- * @return the
* The class formats Jewish dates, numbers, Daf Yomi (Bavli and Yerushalmi), the Omer,
* Parshas Hashavua (including the special parshiyos of Shekalim, Zachor, Parah
* and Hachodesh), Yomim Tovim and the Molad (experimental) in Hebrew or Latin chars, and has various settings.
@@ -333,7 +333,7 @@ public void setLongWeekFormat(boolean longWeekFormat) {
* @see #getTransliteratedShabbosDayOfWeek()
* @see #setTransliteratedShabbosDayOfWeek(String)
*/
- private String transliteratedShabbosDayOfweek = "Shabbos";
+ private String transliteratedShabbosDayOfWeek = "Shabbos";
/**
* Returns the day of Shabbos transliterated into Latin chars. The default uses Ashkenazi pronunciation "Shabbos".
@@ -344,7 +344,7 @@ public void setLongWeekFormat(boolean longWeekFormat) {
* @see #formatDayOfWeek(JewishDate)
*/
public String getTransliteratedShabbosDayOfWeek() {
- return transliteratedShabbosDayOfweek;
+ return transliteratedShabbosDayOfWeek;
}
/**
@@ -358,7 +358,7 @@ public String getTransliteratedShabbosDayOfWeek() {
* @see #formatDayOfWeek(JewishDate)
*/
public void setTransliteratedShabbosDayOfWeek(String transliteratedShabbos) {
- this.transliteratedShabbosDayOfweek = transliteratedShabbos;
+ this.transliteratedShabbosDayOfWeek = transliteratedShabbos;
}
/**
@@ -377,7 +377,7 @@ public void setTransliteratedShabbosDayOfWeek(String transliteratedShabbos) {
* {@link #formatYomTov(JewishCalendar)} when formatting the Yom Tov String. The default list of months uses
* Ashkenazi pronunciation in typical American English spelling.
*
- * @return the list of transliterated holidays. The default list is currently ["Erev Pesach", "Pesach",
+ * @return the array of transliterated holidays. The default list is currently ["Erev Pesach", "Pesach",
* "Chol Hamoed Pesach", "Pesach Sheni", "Erev Shavuos", "Shavuos", "Seventeenth of Tammuz", "Tishah B'Av",
* "Tu B'Av", "Erev Rosh Hashana", "Rosh Hashana", "Fast of Gedalyah", "Erev Yom Kippur", "Yom Kippur",
* "Erev Succos", "Succos", "Chol Hamoed Succos", "Hoshana Rabbah", "Shemini Atzeres", "Simchas Torah",
@@ -580,7 +580,7 @@ public void setHebrewOmerPrefix(String hebrewOmerPrefix) {
* pronunciation in typical American English spelling. This list has a length of 14 with 3 variations for Adar -
* "Adar", "Adar II", "Adar I"
*
- * @return the list of months beginning in Nissan and ending in in "Adar", "Adar II", "Adar I". The default list is
+ * @return the array of months beginning in Nissan and ending in "Adar", "Adar II", "Adar I". The default list is
* currently ["Nissan", "Iyar", "Sivan", "Tammuz", "Av", "Elul", "Tishrei", "Cheshvan", "Kislev", "Teves",
* "Shevat", "Adar", "Adar II", "Adar I"].
* @see #setTransliteratedMonthList(String[])
@@ -590,7 +590,7 @@ public String[] getTransliteratedMonthList() {
}
/**
- * Setter method to allow overriding of the default list of months transliterated into into Latin chars. The default
+ * Setter method to allow overriding of the default list of months transliterated into Latin chars. The default
* uses Ashkenazi American English transliteration.
*
* @param transliteratedMonths
@@ -680,7 +680,7 @@ public boolean isUseGershGershayim() {
* שבט ו׳ אלפים show the use of the Geresh.
*
* @param useGershGershayim
- * set to false to omit the Geresh ׳ and Gershayim ״ in formatting
+ * set this to false to omit the Geresh ׳ and Gershayim ״ in formatting
*/
public void setUseGershGershayim(boolean useGershGershayim) {
this.useGershGershayim = useGershGershayim;
@@ -689,7 +689,7 @@ public void setUseGershGershayim(boolean useGershGershayim) {
/**
* Returns whether the class is set to use the מנצפ״ך letters when
* formatting years ending in 20, 40, 50, 80 and 90 to produce תש״פ if false or
- * or תש״ף if true. Traditionally non-final form letters are used, so the year
+ * תש״ף if true. Traditionally non-final form letters are used, so the year
* 5780 would be formatted as תש״פ if the default false is used here. If this returns
* true, the format תש״ף would be used.
*
@@ -859,17 +859,17 @@ private static String formatMolad(long moladChalakim) {
public String getFormattedKviah(int jewishYear) {
JewishDate jewishDate = new JewishDate(jewishYear, JewishDate.TISHREI, 1); // set date to Rosh Hashana
int kviah = jewishDate.getCheshvanKislevKviah();
- int roshHashanaDayOfweek = jewishDate.getDayOfWeek();
- String returnValue = formatHebrewNumber(roshHashanaDayOfweek);
+ int roshHashanaDayOfWeek = jewishDate.getDayOfWeek();
+ String returnValue = formatHebrewNumber(roshHashanaDayOfWeek);
returnValue += (kviah == JewishDate.CHASERIM ? "\u05D7" : kviah == JewishDate.SHELAIMIM ? "\u05E9" : "\u05DB");
jewishDate.setJewishDate(jewishYear, JewishDate.NISSAN, 15); // set to Pesach of the given year
- int pesachDayOfweek = jewishDate.getDayOfWeek();
- returnValue += formatHebrewNumber(pesachDayOfweek);
+ int pesachDayOfWeek = jewishDate.getDayOfWeek();
+ returnValue += formatHebrewNumber(pesachDayOfWeek);
returnValue = returnValue.replaceAll(GERESH, "");// geresh is never used in the kviah format
// boolean isLeapYear = JewishDate.isJewishLeapYear(jewishYear);
// for efficiency we can avoid the expensive recalculation of the pesach day of week by adding 1 day to Rosh
- // Hashana for a 353 day year, 2 for a 354 day year, 3 for a 355 or 383 day year, 4 for a 384 day year and 5 for
- // a 385 day year
+ // Hashana for a 353-day year, 2 for a 354-day year, 3 for a 355 or 383 day year, 4 for a 384-day year and 5 for
+ // a 385-day year
return returnValue;
}
@@ -912,7 +912,7 @@ public String formatDafYomiYerushalmi(Daf daf) {
}
/**
- * Returns a Hebrew formatted string of a number. The method can calculate from 0 - 9999.
+ * Returns a Hebrew formatted string of a number. The method can calculate from 0 to 9999.
*
* This open source Java code was originally ported by Avrom Finkelstien
* from his C++ code. It was refactored to fit the KosherJava Zmanim API with simplification of the code, enhancements
* and some bug fixing. The class allows setting whether the holiday and parsha scheme follows the Israel scheme
@@ -45,27 +45,27 @@
* @author © Eliyahu Hershfeld 2011 - 2023
*/
public class JewishCalendar extends JewishDate {
- /** The 14th day of Nissan, the day before of Pesach (Passover).*/
+ /** The 14th day of Nissan, the day before Pesach (Passover).*/
public static final int EREV_PESACH = 0;
/** The holiday of Pesach (Passover) on the 15th (and 16th out of Israel) day of Nissan.*/
public static final int PESACH = 1;
/** Chol Hamoed (interim days) of Pesach (Passover)*/
public static final int CHOL_HAMOED_PESACH = 2;
- /**Pesach Sheni, the 14th day of Iyar, a minor holiday.*/
+ /** Pesach Sheni, the 14th day of Iyar, a minor holiday.*/
public static final int PESACH_SHENI = 3;
- /**Erev Shavuos (the day before Shavuos), the 5th of Sivan*/
+ /** Erev Shavuos (the day before Shavuos), the 5th of Sivan*/
public static final int EREV_SHAVUOS = 4;
- /**Shavuos (Pentecost), the 6th of Sivan*/
+ /** Shavuos (Pentecost), the 6th of Sivan*/
public static final int SHAVUOS = 5;
- /** The fast of the 17th day of Tamuz*/
+ /** The fast of the 17th day of Tammuz*/
public static final int SEVENTEEN_OF_TAMMUZ = 6;
/** The fast of the 9th of Av*/
public static final int TISHA_BEAV = 7;
/** The 15th day of Av, a minor holiday*/
public static final int TU_BEAV = 8;
- /**Erev Rosh Hashana (the day before Rosh Hashana), the 29th of Elul*/
+ /** Erev Rosh Hashana (the day before Rosh Hashana), the 29th of Elul*/
public static final int EREV_ROSH_HASHANA = 9;
- /** Rosh Hashana, the first of Tishrei.*/
+ /** Rosh Hashana, the first and second days of Tishrei.*/
public static final int ROSH_HASHANA = 10;
/** The fast of Gedalyah, the 3rd of Tishrei.*/
public static final int FAST_OF_GEDALYAH = 11;
@@ -220,7 +220,7 @@ public static enum Parsha {
};
/**
- * Is this calendar set to return modern Israeli national holidays. By default this value is false. The holidays
+ * Is this calendar set to return modern Israeli national holidays. By default, this value is false. The holidays
* are {@link #YOM_HASHOAH Yom HaShoah}, {@link #YOM_HAZIKARON Yom Hazikaron}, {@link
* #YOM_HAATZMAUT Yom Ha'atzmaut} and {@link #YOM_YERUSHALAYIM Yom Yerushalayim}.
*
@@ -233,7 +233,7 @@ public boolean isUseModernHolidays() {
}
/**
- * Sets the calendar to return modern Israeli national holidays. By default this value is false. The holidays are:
+ * Sets the calendar to return modern Israeli national holidays. By default, this value is false. The holidays are:
* {@link #YOM_HASHOAH Yom HaShoah}, {@link #YOM_HAZIKARON Yom Hazikaron}, {@link
* #YOM_HAATZMAUT Yom Ha'atzmaut} and {@link #YOM_YERUSHALAYIM Yom Yerushalayim}.
*
@@ -385,7 +385,7 @@ public boolean isBirkasHachamah() {
* to Nissan = 177. Subtract 7 days since tekufas Nissan was 7 days and 9 hours before the molad as stated in the Rambam
* and we are now at 170 days. Because getJewishCalendarElapsedDays and getDaysSinceStartOfJewishYear use the value for
* Rosh Hashana as 1, we have to add 1 day for a total of 171. To this add a day since the tekufah is on a Tuesday
- * night and we push off the bracha to Wednesday AM resulting in the 172 used in the calculation.
+ * night, and we push off the bracha to Wednesday morning resulting in the 172 used in the calculation.
*/
if (elapsedDays % (28 * 365.25) == 172) { // 28 years of 365.25 days + the offset from molad tohu mentioned above
return true;
@@ -537,7 +537,7 @@ public Parsha getUpcomingParshah() {
* {@link Parsha#SHIRA Shira}, or {@link Parsha#NONE Parsha.NONE} for a regular Shabbos (or any weekday).
*
* @return one of the four parshiyos of {@link Parsha#SHKALIM Shkalim}, {@link Parsha#ZACHOR Zachor},
- * {@link Parsha#PARA Para}, {@link Parsha#HACHODESH Hachdesh}, or five other special Shabbasos
+ * {@link Parsha#PARA Para}, {@link Parsha#HACHODESH Hachodesh}, or five other special Shabbasos
* of {@link Parsha#HAGADOL Hagadol}, {@link Parsha#CHAZON Chazon}, {@link Parsha#NACHAMU Nachamu},
* {@link Parsha#SHUVA Shuva}, {@link Parsha#SHIRA Shira}, or {@link Parsha#NONE Parsha.NONE} for a regular
* Shabbos (or any weekday).
@@ -637,7 +637,7 @@ public int getYomTovIndex() {
|| ((day == 3 || day == 2) && dayOfWeek == Calendar.WEDNESDAY) || (day == 5 && dayOfWeek == Calendar.MONDAY))) {
return YOM_HAZIKARON;
}
- // if 5 Iyar falls on Wed, Yom Haatzmaut is that day. If it fal1s on Friday or Shabbos, it is moved back to
+ // if 5 Iyar falls on Wed, Yom Haatzmaut is that day. If it falls on Friday or Shabbos, it is moved back to
// Thursday. If it falls on Monday it is moved to Tuesday
if (isUseModernHolidays()
&& ((day == 5 && dayOfWeek == Calendar.WEDNESDAY)
@@ -788,7 +788,7 @@ public int getYomTovIndex() {
/**
* Returns true if the current day is Yom Tov. The method returns true even for holidays such as {@link #CHANUKAH}
* and minor ones such as {@link #TU_BEAV} and {@link #PESACH_SHENI}. Erev Yom Tov (with the exception of
- * {@link #HOSHANA_RABBA}, erev the second days of {@link #PESACH}) returns false, as do {@link #isTaanis() fast
+ * {@link #HOSHANA_RABBA}, and erev the second days of {@link #PESACH}) returns false, as do {@link #isTaanis() fast
* days} besides {@link #YOM_KIPPUR}. Use {@link #isAssurBemelacha()} to find the days that have a prohibition of work.
*
* @return true if the current day is a Yom Tov
@@ -873,7 +873,7 @@ public boolean isErevYomTovSheni() {
/**
* Returns true if the current day is Aseres Yemei Teshuva.
*
- * @return if the current day is Aseres Yemei Teshuvah
+ * @return if the current day is Aseres Yemei Teshuva
*/
public boolean isAseresYemeiTeshuva() {
return getJewishMonth() == TISHREI && getJewishDayOfMonth() <= 10;
@@ -962,7 +962,7 @@ public boolean isSuccos() {
/**
* Returns true if the current day is Hoshana Rabba.
*
- * @return true true if the current day is Hoshana Rabba.
+ * @return true if the current day is Hoshana Rabba.
* @see #isYomTov()
* @see #HOSHANA_RABBA
*/
@@ -1157,7 +1157,7 @@ public boolean isChanukah() {
/**
* Returns if the day is Purim (Shushan Purim
* in a mukaf choma and regular Purim in a non-mukaf choma).
- * @return if the day is Purim (Shushan Purim in a mukaf choma and regular Purin in a non-mukaf choma)
+ * @return if the day is Purim (Shushan Purim in a mukaf choma and regular Purim in a non-mukaf choma)
*
* @see #getIsMukafChoma()
* @see #setIsMukafChoma(boolean)
@@ -1333,7 +1333,7 @@ public Date getSofZmanKidushLevanaBetweenMoldos() {
/**
* Returns the latest time of Kiddush Levana calculated as 15 days after the molad. This is the
* opinion brought down in the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that
- * the Rema who brings down the the Rema who brings down the Maharil's opinion of calculating it as
* {@link #getSofZmanKidushLevanaBetweenMoldos() half way between molad and molad} is of the
* opinion of the Mechaber as well. Also see the Aruch Hashulchan. For additional details on the subject, See Rabbi
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishDate.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishDate.java
index 85042bad..c4cf8d9f 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishDate.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishDate.java
@@ -32,17 +32,17 @@
* href="http://en.wikipedia.org/wiki/Hillel_II">Hillel II's (Hakatan's) calendar (4119 in the Jewish Calendar / 359
* CE Julian as recorded by Rav Hai Gaon) would be just an
* approximation.
- *
+ *
* This open source Java code was written by Avrom Finkelstien from his C++
* code. It was refactored to fit the KosherJava Zmanim API with simplification of the code, enhancements and some bug
* fixing.
- *
+ *
* Some of Avrom's original C++ code was translated from
* C/C++ code in
* Calendrical Calculations by Nachum Dershowitz and Edward M.
- * Reingold, Software-- Practice & Experience, vol. 20, no. 9 (September, 1990), pp. 899- 928. Any method with the mark
+ * Reingold, Software-- Practice & Experience, vol. 20, no. 9 (September 1990), pp. 899- 928. Any method with the mark
* "ND+ER" indicates that the method was taken from this source with minor modifications.
- *
+ *
* If you are looking for a class that implements a Jewish calendar version of the Calendar class, one is available from
* the ICU (International Components for Unicode) project, formerly part of
* IBM's DeveloperWorks.
@@ -137,14 +137,14 @@ public class JewishDate implements Comparable
* The actual Time Zone offset may deviate from the expected offset based on the longitude. Since the 'absolute time'
* calculations are always based on longitudinal offset from UTC for a given date, the date is presumed to only
- * increase East of the Prime Meridian, and to only decrease West of it. For Time Zones that cross the antimeridian,
+ * increase East of the Prime Meridian, and to only decrease West of it. For Time Zones that cross the anti meridian,
* the date will be artificially adjusted before calculation to conform with this presumption.
- *
+ *
* For example, Apia, Samoa with a longitude of -171.75 uses a local offset of +14:00. When calculating sunrise for
* 2018-02-03, the calculator should operate using 2018-02-02 since the expected zone is -11. After determining the
* UTC time, the local DST offset of UTC+14:00 should be applied
* to bring the date back to 2018-02-03.
*
- * @return the number of days to adjust the date This will typically be 0 unless the date crosses the antimeridian
+ * @return the number of days to adjust the date This will typically be 0 unless the date crosses the anti meridian
*/
public int getAntimeridianAdjustment() {
double localHoursOffset = getLocalMeanTimeOffset() / (double)HOUR_MILLIS;
@@ -348,7 +348,7 @@ public int getAntimeridianAdjustment() {
// than a location using a timezone across the anti meridian to the east such as Samoa)
return 1; // roll the date forward a day
} else if (localHoursOffset <= -20) { // if the offset is 20 hours or more in the past (no current location is known
- //that crosses the antimeridian to the west, but better safe than sorry)
+ //that crosses the anti meridian to the west, but better safe than sorry)
return -1; // roll the date back a day
}
return 0; //99.999% of the world will have no adjustment
@@ -417,7 +417,7 @@ public double getGeodesicDistance(GeoLocation location) {
private double vincentyFormula(GeoLocation location, int formula) {
double a = 6378137;
double b = 6356752.3142;
- double f = 1 / 298.257223563; // WGS-84 ellipsiod
+ double f = 1 / 298.257223563; // WGS-84 ellipsoid
double L = Math.toRadians(location.getLongitude() - getLongitude());
double U1 = Math.atan((1 - f) * Math.tan(Math.toRadians(getLatitude())));
double U2 = Math.atan((1 - f) * Math.tan(Math.toRadians(location.getLatitude())));
@@ -530,7 +530,7 @@ public double getRhumbLineDistance(GeoLocation location) {
/**
* A method that returns an XML formatted
* Here is an example of various ways of sorting zmanim.
* First create the Calendar for the location you would like to calculate:
*
@@ -158,7 +158,7 @@ public String getLabel() {
}
/**
- * Sets the the name / label of the zman such as "Sof Zman Krias Shema GRA".
+ * Sets the name / label of the zman such as "Sof Zman Krias Shema GRA".
* @param label the name / label to set for the zman.
* @see #getLabel()
*/
@@ -204,7 +204,7 @@ public int compare(Zman zman1, Zman zman2) {
* A {@link Comparator} that will compare and sort zmanim by zmanim label order. Compares its two arguments by the zmanim label
* name order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
* than the second.
- * Please note that this class will will sort cases where either the {@code Zman} is a null or {@link #label} returns a null
+ * Please note that this class will sort cases where either the {@code Zman} is a null or {@link #label} returns a null
* as empty {@code String}s.
*/
public static final ComparatorDate
of the later of {@link #getMinchaGedolaBaalHatanya()} and {@link #getMinchaGedola30Minutes()}.
+ * @return the Date
of the latter of {@link #getMinchaGedolaBaalHatanya()} and {@link #getMinchaGedola30Minutes()}.
* 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.
@@ -4435,7 +4435,7 @@ public Date getPlagHaminchaGRAFixedLocalChatzosToSunset() {
/**
* Method to return tzais (dusk) calculated as 50 minutes after sea level sunset. This method returns
* tzais (nightfall) based on the opinion of Rabbi Moshe Feinstein for the New York area. This time should
- * not be used for latitudes different than the NY area.
+ * not be used for latitudes different from the NY area.
*
* @return the Date
representing the time. 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,
diff --git a/src/main/java/com/kosherjava/zmanim/ZmanimCalendar.java b/src/main/java/com/kosherjava/zmanim/ZmanimCalendar.java
index c5ba473d..a6241628 100644
--- a/src/main/java/com/kosherjava/zmanim/ZmanimCalendar.java
+++ b/src/main/java/com/kosherjava/zmanim/ZmanimCalendar.java
@@ -80,7 +80,7 @@ public class ZmanimCalendar extends AstronomicalCalendar {
/**
* Is elevation above sea level calculated for times besides sunrise and sunset. According to Rabbi Dovid Yehuda
* Bursztyn in his Zmanim Kehilchasam (second edition published
- * in 2007) chapter 2 (pages 186-187) no zmanim besides sunrise and sunset should use elevation. However
+ * in 2007) chapter 2 (pages 186-187) no zmanim besides sunrise and sunset should use elevation. However,
* Rabbi Yechiel Avrahom Zilber in the Birur Halacha Vol. 6 Ch. 58 Pages
* 34 and 42 is of the opinion that elevation should be
@@ -129,17 +129,17 @@ public void setUseElevation(boolean useElevation) {
/**
* Is {@link #getSunTransit() astronomical chatzos} used for {@link #getChatzos()} for enhanced accuracy. For
- * example as the day is lengthens, the second half of the day is longer than the first and astronomical chatzos
+ * example as the day is lengthening, the second half of the day is longer than the first and astronomical chatzos
* would be a drop earlier than half of the time between sunrise and sunset.
*
* @todo In the future, if this is set to true, the following may change to enhance accuracy. {@link #getSofZmanShmaGRA()
- * Sof zman Shma GRA} would be calculated as 3 shaaos zmaniyos after sunrise, but the shaaos
+ * Sof zman Shma GRA} would be calculated as 3 shaos zmaniyos after sunrise, but the shaos
* zmaniyos would be calculated a a 6th of the time between sunrise and chatzos, as opposed to a 12th of the
* time between sunrise and sunset. {@link #getMinchaGedola() mincha gedola} will be calculated as half a
* shaah zmanis of afternoon hours (a 6th of the time between chatzos and sunset after astronomical
- * chatzos as opposed to 6.5 shaaos zmaniyos after sunrise. {@link #getPlagHamincha() Plag
- * hamincha} would be calculated as 4.75 shaaos zmaniyos after astronomical chatzos as opposed to 10.75
- * shaaos zmaniyos after sunrise. Etc.
+ * chatzos as opposed to 6.5 shaos zmaniyos after sunrise. {@link #getPlagHamincha() Plag
+ * hamincha} would be calculated as 4.75 shaos zmaniyos after astronomical chatzos as opposed to 10.75
+ * shaos zmaniyos after sunrise. Etc.
*
* @return if the use of astronomical chatzos is active.
* @see #useAstronomicalChatzos
@@ -183,16 +183,16 @@ public void setUseAstronomicalChatzos(boolean useAstronomicalChatzos) {
* Is astronomical chatzos used for zmanim calculations besides chatzos itself for enhanced
* accuracy. For example as the day is lengthening (as we approach spring season), the second half of the day is longer than
* the first and astronomical chatzos would be a drop earlier than half of the time between sunrise and sunset.
- * Conversely, the second half of the day would be shorter in the fall season as the days start getting shorter.
+ * Conversely, the second half of the day would be shorter in the season of fall as the days start getting shorter.
*
* @todo In the future, if this is set to true, the following may change to enhance accuracy. {@link #getSofZmanShmaGRA()
- * Sof zman Shma GRA} would be calculated as 3 shaaos zmaniyos after sunrise, but the shaaos
+ * Sof zman Shma GRA} would be calculated as 3 shaos zmaniyos after sunrise, but the shaos
* zmaniyos would be calculated a a 6th of the time between sunrise and chatzos, as opposed to a 12th of the
* time between sunrise and sunset. {@link #getMinchaGedola() mincha gedola} will be calculated as half a
* shaah zmanis of afternoon hours (a 6th of the time between chatzos and sunset after astronomical
- * chatzos as opposed to 6.5 shaaos zmaniyos after sunrise. {@link #getPlagHamincha() Plag
- * hamincha} would be calculated as 4.75 shaaos zmaniyos after astronomical chatzos as opposed to 10.75
- * shaaos zmaniyos after sunrise. Etc.
+ * chatzos as opposed to 6.5 shaos zmaniyos after sunrise. {@link #getPlagHamincha() Plag
+ * hamincha} would be calculated as 4.75 shaos zmaniyos after astronomical chatzos as opposed to 10.75
+ * shaos zmaniyos after sunrise. Etc.
*
* @return if the use of astronomical chatzos is active.
* @see #useAstronomicalChatzosForOtherZmanim
@@ -331,7 +331,7 @@ public Date getAlosHashachar() {
/**
* Method to return alos (dawn) calculated using 72 minutes before {@link #getSunrise() sunrise} or
* {@link #getSeaLevelSunrise() sea level sunrise} (depending on the {@link #isUseElevation()} setting). This time
- * is based on the time to walk the distance of 4 Mil at 18 minutes a Mil. The 72 minute time (but
+ * is based on the time to walk the distance of 4 Mil at 18 minutes a Mil. The 72-minute time (but
* not the concept of fixed minutes) is based on the opinion that the time of the Neshef (twilight between
* dawn and sunrise) does not vary by the time of year or location but depends on the time it takes to walk the
* distance of 4 Mil.
@@ -349,10 +349,10 @@ public Date getAlos72() {
* This method returns {@link #getSunTransit() Astronomical chatzos} if the
* {@link com.kosherjava.zmanim.util.AstronomicalCalculator calculator} class used supports it and
* {@link #isUseAstronomicalChatzos() isUseAstronomicalChatzos()} is set to true or the {@link #getChatzosAsHalfDay()
- * halfway point between sunrise and sunset} if it does not support it or it is not configured to use it. There are currently
+ * halfway point between sunrise and sunset} if it does not support it, or it is not configured to use it. There are currently
* two {@link com.kosherjava.zmanim.util.AstronomicalCalculator calculators} available in the API, the default {@link
* com.kosherjava.zmanim.util.NOAACalculator NOAA calculator} and the {@link com.kosherjava.zmanim.util.SunTimesCalculator USNO
- * calculator}. The USNO calculator calculates chatzos as halfway between sunrise and sunset (identical to six shaaos
+ * calculator}. The USNO calculator calculates chatzos as halfway between sunrise and sunset (identical to six shaos
* zmaniyos after sunrise), while the NOAACalculator calculates it more accurately as {@link #getSunTransit() astronomical
* chatzos}. See The Definition of Chatzos
* for a detailed explanation of the ways to calculate Chatzos. Since half-day chatzos can be null
in
@@ -383,18 +383,18 @@ public Date getChatzos() {
}
/**
- * Returns chatzos calculated as halfway between sunrise and sunset. Many are of the opinion opinion that
- * chatzos is calculated as the the midpoint between {@link #getSeaLevelSunrise sea level sunrise} and
+ * Returns chatzos calculated as halfway between sunrise and sunset. Many are of the opinion that
+ * chatzos is calculated as the midpoint between {@link #getSeaLevelSunrise sea level sunrise} and
* {@link #getSeaLevelSunset sea level sunset}, despite it not being the most accurate way to calculate it. A day
* starting at alos and ending at tzais using the same time or degree offset will also return
* the same time. In reality due to lengthening or shortening of day, this is not necessarily the exact midpoint of
* the day, but it is very close. This method allows you to use the NOAACalculator and still calculate chatzos
- * as six shaaos zmaniyos after sunrise. There are currently two {@link
+ * as six shaos zmaniyos after sunrise. There are currently two {@link
* com.kosherjava.zmanim.util.AstronomicalCalculator calculators} available in the API, the {@link
* com.kosherjava.zmanim.util.NOAACalculator} and the {@link com.kosherjava.zmanim.util.SunTimesCalculator}.
- * The SunTimesCalculator calculates chatzos as halfway between sunrise and sunset (and of six shaaos
+ * The SunTimesCalculator calculates chatzos as halfway between sunrise and sunset (and of six shaos
* zmaniyos), while the NOAACalculator calculates it as astronomical chatzos that is slightly more
- * accurate. This method allows you to use the NOAACalculator and still calculate chatzos as six shaaos
+ * accurate. This method allows you to use the NOAACalculator and still calculate chatzos as six shaos
* zmaniyos after sunrise. See The Definition
* of Chatzos for a detailed explanation of the ways to calculate Chatzos.
*
@@ -456,7 +456,7 @@ public Date getSofZmanShma(Date startOfDay, Date endOfDay, boolean synchronous)
/**
* A generic method for calculating the latest zman krias shema that calls {@link #getSofZmanShma(Date, Date, boolean)}
- * passing false
to the synchronous parameter since there is now way to know if the start and end of the day are
+ * passing false
to the synchronous parameter since there is no way to know if the start and end of the day are
* synchronous. Passing true when they are not synchronous is too much of a risk. See information on that method for more details.
* @param startOfDay
* the start of day for calculating zman krias shema. This can be sunrise or any alos passed
@@ -479,8 +479,8 @@ public Date getSofZmanShma(Date startOfDay, Date endOfDay) {
* {@link #getShaahZmanisGra() shaos zmaniyos} (solar hours) after {@link #getSunrise() sunrise} or
* {@link #getSeaLevelSunrise() sea level sunrise} (depending on the {@link #isUseElevation()} setting), according
* to the GRA.
- * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunrise sea level
- * sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
+ * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunset() sea level
+ * sunset} or from {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
* setting).
*
* @see #getSofZmanShma(Date, Date)
@@ -501,7 +501,7 @@ public Date getSofZmanShmaGRA() {
* {@link #getShaahZmanisMGA() shaos zmaniyos} (solar hours) after {@link #getAlos72()}, according to the
* Magen Avraham (MGA). The day is calculated
* from 72 minutes before {@link #getSeaLevelSunrise() sea level sunrise} to 72 minutes after {@link
- * #getSeaLevelSunrise sea level sunset} or from 72 minutes before {@link #getSunrise() sunrise} to {@link #getSunset()
+ * #getSeaLevelSunset() sea level sunset} or from 72 minutes before {@link #getSunrise() sunrise} to {@link #getSunset()
* sunset} (depending on the {@link #isUseElevation()} setting).
*
* @return the Date
of the latest zman shema. If the calculation can't be computed such as in
@@ -523,8 +523,8 @@ public Date getSofZmanShmaMGA() {
* a Mil. According to the Machtzis Hashekel in
* Orach Chaim 235:3, the Pri Megadim in Orach
* Chaim 261:2 (see the Biur Halacha) and others (see Hazmanim Bahalacha 17:3 and 17:5) the 72 minutes are standard
- * clock minutes any time of the year in any location. Depending on the {@link #isUseElevation()} setting) a 72
- * minute offset from either {@link #getSunset() sunset} or {@link #getSeaLevelSunset() sea level sunset} is used.
+ * clock minutes any time of the year in any location. Depending on the {@link #isUseElevation()} setting, a
+ * 72-minute offset from either {@link #getSunset() sunset} or {@link #getSeaLevelSunset() sea level sunset} is used.
*
* @see ComplexZmanimCalendar#getTzais16Point1Degrees()
* @return the Date
representing 72 minutes after sunset. If the calculation can't be
@@ -567,7 +567,7 @@ public Date getCandleLighting() {
* "https://en.wikipedia.org/wiki/Vilna_Gaon">GRA. This method's synchronous parameter indicates if the start
* and end of day for the calculation are synchronous, having the same offset. This is typically the case, but some
* zmanim calculations are based on a start and end at different offsets from the real start and end of the day,
- * such as starting the day at alos and an ending it at tzais genoim or some other variant. If the day
+ * such as starting the day at alos and an ending it at tzais geonim or some other variant. If the day
* is not synchronous a {@link #getHalfDayBasedZman(Date, Date, double) half-day based calculations} will be bypassed.
* It would be illogical to use a half-day based calculation that start/end at chatzos when the two "halves" of
* the day are not equal, and the halfway point between them is not at chatzos.
@@ -597,7 +597,7 @@ public Date getSofZmanTfila(Date startOfDay, Date endOfDay, boolean synchronous)
/**
* A generic method for calculating the latest zman tfila that calls {@link #getSofZmanTfila(Date, Date, boolean)}
- * passing false
to the synchronous parameter since there is now way to know if the start and end of the day are
+ * passing false
to the synchronous parameter since there is no way to know if the start and end of the day are
* synchronous. Passing true when they are not synchronous is too much of a risk. See information on that method for more details.
* @param startOfDay
* the start of day for calculating zman tfilah. This can be sunrise or any alos passed
@@ -620,8 +620,8 @@ public Date getSofZmanTfila(Date startOfDay, Date endOfDay) {
* {@link #getShaahZmanisGra() shaos zmaniyos }(solar hours) after {@link #getSunrise() sunrise} or
* {@link #getSeaLevelSunrise() sea level sunrise} (depending on the {@link #isUseElevation()} setting), according
* to the GRA.
- * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunrise sea level
- * sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
+ * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunset() sea level
+ * sunset} or from {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
* setting).
*
* @see #getSofZmanTfila(Date, Date)
@@ -641,12 +641,12 @@ public Date getSofZmanTfilaGRA() {
* {@link #getShaahZmanisMGA() shaos zmaniyos} (solar hours) after {@link #getAlos72()}, according to the
* Magen Avraham (MGA). The day is calculated
* from 72 minutes before {@link #getSeaLevelSunrise() sea level sunrise} to 72 minutes after {@link
- * #getSeaLevelSunrise sea level sunset} or from 72 minutes before {@link #getSunrise() sunrise} to {@link #getSunset()
+ * #getSeaLevelSunset() sea level sunset} or from 72 minutes before {@link #getSunrise() sunrise} to {@link #getSunset()
* sunset} (depending on the {@link #isUseElevation()} setting).
*
* @return the Date
of the latest zman tfila. 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
+ * does not set, a null
will be returned. See detailed explanation on top of the
* {@link AstronomicalCalendar} documentation.
* @see #getSofZmanTfila(Date, Date)
* @see #getShaahZmanisMGA()
@@ -665,13 +665,13 @@ public Date getSofZmanTfilaMGA() {
* #getSeaLevelSunrise() sea level sunrise} and {@link #getSeaLevelSunset() sea level sunset} (depending on the {@link
* #isUseElevation()} elevation setting) to this method will return mincha gedola according to the opinion of the
* GRA. Alternatively, this method uses {@link
- * #isUseAstronomicalChatzosForOtherZmanim()} to control if the time is based on 6.5 sha'os zmaniyos into the day
+ * #isUseAstronomicalChatzosForOtherZmanim()} to control if the time is based on 6.5 shaos zmaniyos into the day
* mentioned above, or as half an hour zmaniyos based on the second half of the day after chatzos ({@link
* #getSunTransit() astronomical chatzos} if supported by the {@link AstronomicalCalculator calculator} and {@link
* #isUseAstronomicalChatzos() configured} or {@link #getChatzosAsHalfDay() chatzos as half a day} if not. This
* method's synchronous parameter indicates if the start and end of day for the calculation are synchronous, having the same
* offset. This is typically the case, but some zmanim calculations are based on a start and end at different offsets
- * from the real start and end of the day, such as starting the day at alos and an ending it at tzais genoim
+ * from the real start and end of the day, such as starting the day at alos and an ending it at tzais geonim
* or some other variant. If the day is not synchronous a {@link #getHalfDayBasedZman(Date, Date, double) half-day based
* calculations} will be bypassed. It would be illogical to use a half-day based calculation that start/end at chatzos
* when the two "halves" of the day are not equal, and the halfway point between them is not at chatzos.
@@ -706,7 +706,7 @@ public Date getMinchaGedola(Date startOfDay, Date endOfDay, boolean synchronous)
/**
* A generic method for calculating mincha gedola that calls {@link #getMinchaGedola(Date, Date, boolean)} passing
- * false
to the synchronous parameter since there is now way to know if the start and end of the day are
+ * false
to the synchronous parameter since there is no way to know if the start and end of the day are
* synchronous. Passing true when they are not synchronous is too much of a risk. See information on that method for more
* details.
* @param startOfDay
@@ -733,7 +733,7 @@ public Date getMinchaGedola(Date startOfDay, Date endOfDay) {
* time one can pray mincha. The Ramba"m is of the opinion that it is better to delay mincha until
* {@link #getMinchaKetana() mincha ketana} while the Ra"sh, Tur, GRA and others are of the
* opinion that mincha can be prayed lechatchila starting at mincha gedola.
- * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunrise sea level
+ * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunset() sea level
* sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
* setting).
* @todo Consider adjusting this to calculate the time as half an hour zmaniyos after either {@link
@@ -766,7 +766,7 @@ public Date getMinchaGedola() {
*
* @param startOfDay
* the start of day for calculating samuch lemincha ketana. This can be sunrise or any alos
- * passed to to this method.
+ * passed to this method.
* @param endOfDay
* the end of day for calculating samuch lemincha ketana. This can be sunset or any tzais
* passed to this method.
@@ -793,11 +793,11 @@ public Date getSamuchLeMinchaKetana(Date startOfDay, Date endOfDay, boolean sync
/**
* A generic method for calculating samuch lemincha ketana that calls {@link #getSamuchLeMinchaKetana(Date, Date, boolean)}
- * passing false
to the synchronous parameter since there is now way to know if the start and end of the day are
+ * passing false
to the synchronous parameter since there is no way to know if the start and end of the day are
* synchronous. Passing true when they are not synchronous is too much of a risk. See information on that method for more details.
* @param startOfDay
* the start of day for calculating samuch lemincha ketana. This can be sunrise or any alos
- * passed to to this method.
+ * passed to this method.
* @param endOfDay
* the end of day for calculating samuch lemincha ketana. This can be sunset or any tzais
* passed to this method.
@@ -821,10 +821,10 @@ public Date getSamuchLeMinchaKetana(Date startOfDay, Date endOfDay) {
* example, passing {@link #getSunrise() sunrise} and {@link #getSunset sunset} or {@link #getSeaLevelSunrise() sea
* level sunrise} and {@link #getSeaLevelSunset() sea level sunset} (depending on the {@link #isUseElevation()}
* elevation setting) to this method will return mincha ketana according to the opinion of the
- * GRA. This method's synchronous parameter indicates ifthe start
+ * GRA. This method's synchronous parameter indicates if the start
* and end of day for the calculation are synchronous, having the same offset. This is typically the case, but some
* zmanim calculations are based on a start and end at different offsets from the real start and end of the day,
- * such as starting the day at alos and an ending it at tzais genoim or some other variant. If the day
+ * such as starting the day at alos and an ending it at tzais geonim or some other variant. If the day
* is not synchronous a {@link #getHalfDayBasedZman(Date, Date, double) half-day based calculations} will be bypassed.
* It would be illogical to use a half-day based calculation that start/end at chatzos when the two "halves" of
* the day are not equal, and the halfway point between them is not at chatzos.
@@ -854,7 +854,7 @@ public Date getMinchaKetana(Date startOfDay, Date endOfDay, boolean synchronous)
/**
* A generic method for calculating mincha ketana that calls {@link #getMinchaKetana(Date, Date, boolean)} passing
- * false
to the synchronous parameter since there is now way to know if the start and end of the day are synchronous.
+ * false
to the synchronous parameter since there is no way to know if the start and end of the day are synchronous.
* Passing true when they are not synchronous is too much of a risk. See information on that method for more details.
* @param startOfDay
* the start of day for calculating Mincha ketana. This can be sunrise or any alos passed
@@ -879,8 +879,8 @@ public Date getMinchaKetana(Date startOfDay, Date endOfDay) {
* {@link #getSeaLevelSunrise() sea level sunrise} (depending on the {@link #isUseElevation()} setting), according
* to the GRA. For more information on this see the
* documentation on {@link #getMinchaGedola() mincha gedola}.
- * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunrise sea level
- * sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
+ * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunset() sea level
+ * sunset} or from {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
* setting.
*
* @see #getMinchaKetana(Date, Date)
@@ -908,7 +908,7 @@ public Date getMinchaKetana() {
* GRA. This method's synchronous parameter indicates if
* the start and end of day for the calculation are synchronous, having the same offset. This is typically the case, but
* some zmanim calculations are based on a start and end at different offsets from the real start and end of the
- * day, such as starting the day at alos and an ending it at tzais genoim or some other variant. If the
+ * day, such as starting the day at alos and an ending it at tzais geonim or some other variant. If the
* day is not synchronous a {@link #getHalfDayBasedZman(Date, Date, double) half-day based calculations} will be bypassed.
* It would be illogical to use a half-day based calculation that start/end at chatzos when the two "halves" of
* the day are not equal, and the halfway point between them is not at chatzos.
@@ -936,7 +936,7 @@ public Date getPlagHamincha(Date startOfDay, Date endOfDay, boolean synchronous)
/**
* A generic method for calculating plag hamincha that calls {@link #getPlagHamincha(Date, Date, boolean)} passing
- * false
to the synchronous parameter since there is now way to know if the start and end of the day are synchronous.
+ * false
to the synchronous parameter since there is no way to know if the start and end of the day are synchronous.
* Passing true when they are not synchronous is too much of a risk. See information on that method for more details.
* @param startOfDay
* the start of day for calculating plag. This can be sunrise or any alos passed to this method.
@@ -957,7 +957,7 @@ public Date getPlagHamincha(Date startOfDay, Date endOfDay) {
* (solar hours) after {@link #getSunrise() sunrise} or {@link #getSeaLevelSunrise() sea level sunrise} (depending on
* the {@link #isUseElevation()} setting), according to the GRA. Plag hamincha is the earliest time that Shabbos can be started.
- * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunrise sea level
+ * The day is calculated from {@link #getSeaLevelSunrise() sea level sunrise} to {@link #getSeaLevelSunset() sea level
* sunset} or {@link #getSunrise() sunrise} to {@link #getSunset() sunset} (depending on the {@link #isUseElevation()}
*
* @see #getPlagHamincha(Date, Date, boolean)
@@ -975,7 +975,7 @@ public Date getPlagHamincha() {
/**
* A method that returns a shaah zmanis ({@link #getTemporalHour(Date, Date) temporal hour}) according to
* the opinion of the GRA. This calculation divides
- * the day based on the opinion of the GRA that the day runs from from {@link #getSeaLevelSunrise() sea
+ * the day based on the opinion of the GRA that the day runs from {@link #getSeaLevelSunrise() sea
* level sunrise} to {@link #getSeaLevelSunrise sea level sunset} or {@link #getSunrise() sunrise} to
* {@link #getSunset() sunset} (depending on the {@link #isUseElevation()} setting). The day is split into 12 equal
* parts with each one being a shaah zmanis. This method is similar to {@link #getTemporalHour}, but can
@@ -996,7 +996,7 @@ public long getShaahZmanisGra() {
/**
* A method that returns a shaah zmanis (temporal hour) according to the opinion of the Magen Avraham (MGA) based on a 72 minutes alos
+ * "https://en.wikipedia.org/wiki/Avraham_Gombinern">Magen Avraham (MGA) based on 72 minutes alos
* and tzais. This calculation divides the day that runs from dawn to dusk (for sof zman krias shema and
* tfila). Dawn for this calculation is 72 minutes before {@link #getSunrise() sunrise} or {@link #getSeaLevelSunrise()
* sea level sunrise} (depending on the {@link #isUseElevation()} elevation setting) and dusk is 72 minutes after {@link
@@ -1036,7 +1036,7 @@ public ZmanimCalendar(GeoLocation location) {
/**
* A method to get the offset in minutes before {@link AstronomicalCalendar#getSeaLevelSunset() sea level sunset} which
* is used in calculating candle lighting time. The default time used is 18 minutes before sea level sunset. Some
- * calendars use 15 minutes, while the custom in Jerusalem is to use a 40 minute offset. Please check the local custom
+ * calendars use 15 minutes, while the custom in Jerusalem is to use a 40-minute offset. Please check the local custom
* for candle lighting time.
*
* @return Returns the currently set candle lighting offset in minutes.
@@ -1050,7 +1050,7 @@ public double getCandleLightingOffset() {
/**
* A method to set the offset in minutes before {@link AstronomicalCalendar#getSeaLevelSunset() sea level sunset} that is
* used in calculating candle lighting time. The default time used is 18 minutes before sunset. Some calendars use 15
- * minutes, while the custom in Jerusalem is to use a 40 minute offset.
+ * minutes, while the custom in Jerusalem is to use a 40-minute offset.
*
* @param candleLightingOffset
* The candle lighting offset to set in minutes.
@@ -1096,7 +1096,7 @@ public boolean isAssurBemlacha(Date currentTime, Date tzais, boolean inIsrael) {
/**
* A generic utility method for calculating any shaah zmanis (temporal hour) based zman with the
- * day defined as the start and end of day (or night) and the number of shaahos zmaniyos passed to the
+ * day defined as the start and end of day (or night) and the number of shaos zmaniyos passed to the
* method. This simplifies the code in other methods such as {@link #getPlagHamincha(Date, Date)} and cuts down on
* code replication. As an example, passing {@link #getSunrise() sunrise} and {@link #getSunset sunset} or {@link
* #getSeaLevelSunrise() sea level sunrise} and {@link #getSeaLevelSunset() sea level sunset} (depending on the
@@ -1110,8 +1110,8 @@ public boolean isAssurBemlacha(Date currentTime, Date tzais, boolean inIsrael) {
* the end of day for calculating the zman. This can be sunset or any tzais passed to
* this method.
* @param hours
- * the number of shaahos zmaniyos (temporal hours) to offset from the start of day
- * @return the Date
of the time of zman with the shaahos zmaniyos (temporal hours)
+ * the number of shaos zmaniyos (temporal hours) to offset from the start of day
+ * @return the Date
of the time of zman with the shaos zmaniyos (temporal hours)
* in the day offset from the start of day passed to this method. 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
@@ -1170,7 +1170,7 @@ public double getPercentOfShaahZmanisFromDegrees(double degrees, boolean sunset)
* second half of the day, from chatzos to sunset / tzais. Morning based times are calculated. based on the first
* 6 hours of the day, and afternoon times based on the second half of the day. As an example, passing 0.5, a start of
* chatzos and an end of day as sunset will return the time of mincha gedola GRA as half an hour zmanis
- * based on the second half of the day. Some zmanim calculations can be based on subtracting sha'os zmaniyos
+ * based on the second half of the day. Some zmanim calculations can be based on subtracting shaos zmaniyos
* from the end of the day, and that is supported by passing a negative hour to this method.
*
* @param startOfHalfDay
@@ -1180,9 +1180,9 @@ public double getPercentOfShaahZmanisFromDegrees(double degrees, boolean sunset)
* The end of the half day. This would be chatzos for morning based times such as sof zman krias shema
* and sunset or tzais for afternoon based times such as mincha gedola.
* @param hours
- * The number of sha'os zmaniyos (hours) to offset the beginning of the first or second half of the day. For example,
+ * The number of shaos zmaniyos (hours) to offset the beginning of the first or second half of the day. For example,
* 3 for sof zman Shma, 0.5 for mincha gedola (half an hour after chatzos) and 4.75 for plag
- * hamincha. If the number of hours is negative, it will subtract the number of sha'os zmaniyos from the end
+ * hamincha. If the number of hours is negative, it will subtract the number of shaos zmaniyos from the end
* of the day.
*
* @return the Date
of zman based on calculation of the first or second half of the day. If the
@@ -1208,7 +1208,7 @@ public Date getHalfDayBasedZman(Date startOfHalfDay, Date endOfHalfDay, double h
}
/**
- * A utility method to calculate the length of a sha'ah zmanis based on 1/6 of a 6 hour day.
+ * A utility method to calculate the length of a sha'ah zmanis based on 1/6 of a 6-hour day.
* @param startOfHalfDay The start of the half-day. This would be alos or sunrise for the first half of the day,
* or chatzos for the second half of the day.
* @param endOfHalfDay The end of the half-day. This would be chatzos for the first half of the day, or sunset or
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/Daf.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/Daf.java
index d01e5d39..7a208036 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/Daf.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/Daf.java
@@ -23,7 +23,7 @@
*/
public class Daf {
/**
- * {@link #getMasechtaNumber()} and {@link #setMasechtaNumber(int)}.
+ * See {@link #getMasechtaNumber()} and {@link #setMasechtaNumber(int)}.
*/
private int masechtaNumber;
@@ -159,7 +159,7 @@ public String getMasechtaTransliterated() {
}
/**
- * Setter method to allow overriding of the default list of masechtos transliterated into into Latin chars.
+ * Setter method to allow overriding of the default list of masechtos transliterated into Latin chars.
* The default values use Ashkenazi American English transliteration.
*
* @param masechtosBavliTransliterated the list of transliterated Bavli masechtos to set.
@@ -220,7 +220,7 @@ public String getYerushlmiMasechtaTransliterated() {
}
/**
- * Setter method to allow overriding of the default list of Yerushalmi masechtos transliterated into into Latin chars.
+ * Setter method to allow overriding of the default list of Yerushalmi masechtos transliterated into Latin chars.
* The default uses Ashkenazi American English transliteration.
*
* @param masechtosYerushalmiTransliterated the list of transliterated Yerushalmi masechtos to set.
@@ -240,7 +240,7 @@ public void setYerushlmiMasechtaTransliterated(String[] masechtosYerushalmiTrans
}
/**
- * Getter method to allow retrieving the list of Yerushalmi masechtos transliterated into into Latin chars.
+ * Getter method to allow retrieving the list of Yerushalmi masechtos transliterated into Latin chars.
* The default uses Ashkenazi American English transliteration.
*
* @return the array of transliterated masechta (tractate) names of the Daf Yomi Yerushalmi.
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/HebrewDateFormatter.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/HebrewDateFormatter.java
index 2a121e4f..62f6df10 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/HebrewDateFormatter.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/HebrewDateFormatter.java
@@ -20,7 +20,7 @@
/**
* The HebrewDateFormatter class formats a {@link JewishDate}.
- *
+ *
*
Date
to set the calendar to
@@ -1006,7 +1006,7 @@ public JewishDate(Date date) {
}
/**
- * A constructor that initializes the date to the {@link java.util.Calendar Calendar} paremeter.
+ * A constructor that initializes the date to the {@link java.util.Calendar Calendar} parameter.
*
* @param calendar
* the Calendar
to set the calendar to
@@ -1018,7 +1018,7 @@ public JewishDate(Calendar calendar) {
}
/**
- * A constructor that initializes the date to the {@link java.time.LocalDate LocalDate} paremeter.
+ * A constructor that initializes the date to the {@link java.time.LocalDate LocalDate} parameter.
*
* @param localDate
* the LocalDate
to set the calendar to
@@ -1137,7 +1137,7 @@ private void setInternalGregorianDate(int year, int month, int dayOfMonth) {
* the Jewish day of month. valid values are 1-30. If the day of month is set to 30 for a month that only
* has 29 days, the day will be set as 29.
* @throws IllegalArgumentException
- * if a A Jewish date earlier than 18 Teves, 3761 (1/1/1 Gregorian), a month < 1 or > 12 (or 13 on a
+ * if a Jewish date earlier than 18 Teves, 3761 (1/1/1 Gregorian), a month < 1 or > 12 (or 13 on a
* leap year) or the day of month is < 1 or > 30 is passed in
*/
public void setJewishDate(int year, int month, int dayOfMonth) {
@@ -1166,7 +1166,7 @@ public void setJewishDate(int year, int month, int dayOfMonth) {
* used for larger numbers.
*
* @throws IllegalArgumentException
- * if a A Jewish date earlier than 18 Teves, 3761 (1/1/1 Gregorian), a month < 1 or > 12 (or 13 on a
+ * if a Jewish date earlier than 18 Teves, 3761 (1/1/1 Gregorian), a month < 1 or > 12 (or 13 on a
* leap year), the day of month is < 1 or > 30, an hour < 0 or > 23, a minute < 0 > 59 or chalakim < 0 >
* 17. For larger a larger number of chalakim such as 793 (TaShTzaG) break the chalakim into minutes (18
* chalakim per minutes, so it would be 44 minutes and 1 chelek in the case of 793 (TaShTzaG).
@@ -1434,7 +1434,7 @@ public int getGregorianDayOfMonth() {
}
/**
- * Returns the Gregotian year.
+ * Returns the Gregorian year.
*
* @return the Gregorian year
*/
@@ -1540,7 +1540,7 @@ public void setJewishMonth(int month) {
* the Jewish year
* @throws IllegalArgumentException
* if a year of < 3761 is passed in. The same will happen if the year is 3761 and the month and day
- * previously set are < 18 Teves (preior to Jan 1, 1 AD)
+ * previously set are < 18 Teves (prior to Jan 1, 1 AD)
*/
public void setJewishYear(int year) {
setJewishDate(year, jewishMonth, jewishDay);
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/TefilaRules.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/TefilaRules.java
index a78739ef..b5d7eab2 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/TefilaRules.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/TefilaRules.java
@@ -261,7 +261,7 @@ public boolean isVeseinTalUmatarStartDate(JewishCalendar jewishCalendar) {
}
/**
- * Returns if true if tonight is the first night to start reciting Vesein Tal Umatar Livracha (
+ * Returns true if tonight is the first night to start reciting Vesein Tal Umatar Livracha (
* Sheailas Geshamim). In Israel this is the 7th day of {@link JewishDate#CHESHVAN
* 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
@@ -555,7 +555,7 @@ public boolean isTachanunRecitedWeekOfHod() {
}
/**
- * Sets if tachanun should should be recited during the sefira week of Hod (14 - 20
+ * Sets if tachanun should be recited during the sefira week of Hod (14 - 20
* {@link JewishDate#IYAR Iyar}, or the 29th - 35th of the {@link JewishCalendar#getDayOfOmer() Omer}).
* @param tachanunRecitedWeekOfHod Sets if tachanun should be recited during the sefira week of
* Hod.
@@ -571,10 +571,10 @@ public void setTachanunRecitedWeekOfHod(boolean tachanunRecitedWeekOfHod) {
* 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
+ * The Aruch Hashulchan is of the opinion 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.
* @return If tachanun is set to be recited at the end of {@link JewishDate#TISHREI Tishrei}.
- * @see #setTachanunRecitedEndOfTishrei(tachanunRecitedEndOfTishrei)
+ * @see #setTachanunRecitedEndOfTishrei(boolean)
*/
public boolean isTachanunRecitedEndOfTishrei() {
return tachanunRecitedEndOfTishrei;
@@ -624,7 +624,7 @@ public void setTachanunRecitedWeekAfterShavuos(boolean tachanunRecitedWeekAfterS
* {@link #tachanunRecitedWeekAfterShavuos} and {@link #setTachanunRecited13SivanOutOfIsrael} are set to false.
*
* @return If tachanun is set to be recited on the 13th of {@link JewishDate#SIVAN Sivan} out of Israel.
- * @see #setTachanunRecited13SivanOutOfIsrael(isTachanunRecitedThirteenSivanOutOfIsrael)
+ * @see #setTachanunRecited13SivanOutOfIsrael(boolean)
* @see #isTachanunRecitedWeekAfterShavuos()
*/
public boolean isTachanunRecited13SivanOutOfIsrael() {
@@ -650,7 +650,7 @@ public void setTachanunRecited13SivanOutOfIsrael(boolean tachanunRecitedThirteen
* Is tachanun set to be recited on {@link JewishCalendar#PESACH_SHENI 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
+ * Chodesh Iyar). The Pri Megadim (Mishbetzes Hazahav 131:15) and the Chazon Ish (Erev Pesach Shechal Beshabbos, page 203 in
* Rav Sheraya
* Devlitzky's comments).
*
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java
index 301378c3..ace7de91 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java
@@ -21,7 +21,7 @@
/**
* This class calculates the Talmud Yerusalmi Daf Yomi page ({@link Daf}) for the a given date.
+ * "https://en.wikipedia.org/wiki/Daf_Yomi">Daf Yomi page ({@link Daf}) for the given date.
*
* @author © elihaidv
* @author © Eliyahu Hershfeld 2017 - 2023
@@ -109,7 +109,7 @@ public static Daf getDafYomiYerushalmi(JewishCalendar calendar) {
}
/**
- * Return the number of special days (Yom Kippur and Tisha Beav) That there is no Daf in this days.
+ * Return the number of special days (Yom Kippur and Tisha Beav) That there are no Dafs in these days.
* From the last given number of days until given date
*
* @param start start date to calculate
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YomiCalculator.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YomiCalculator.java
index d00a8562..cedfabef 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YomiCalculator.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/YomiCalculator.java
@@ -31,7 +31,7 @@ public class YomiCalculator {
* The start date of the first Daf Yomi Bavli cycle of September 11, 1923 / Rosh Hashana 5684.
*/
private static final Calendar dafYomiStartDay = new GregorianCalendar(1923, Calendar.SEPTEMBER, 11);
- /** The start date of the first Daf Yomi Bavli cycle in the Julian calendar. Used internally for claculations.*/
+ /** The start date of the first Daf Yomi Bavli cycle in the Julian calendar. Used internally for calculations.*/
private static final int dafYomiJulianStartDay = getJulianDay(dafYomiStartDay);
/**
* The date that the pagination for the Daf Yomi Maseches Shekalim changed to use the commonly used Vilna
@@ -52,12 +52,12 @@ public class YomiCalculator {
* that a change in length of the cycle was instituted starting in the eighth Daf Yomi cycle beginning on June 24,
* 1975. The Daf Yomi Bavli cycle has a single masechta of the Talmud Yerushalmi - Shekalim as part of the cycle.
* Unlike the Bavli where the number of daf per masechta was standardized since the original Bomberg Edition published from 1520 - 1523, there is no
+ * href="http://en.wikipedia.org/wiki/Daniel_Bomberg">Bomberg Edition published from 1520 to 1523, there is no
* uniform page length in the Yerushalmi. The early cycles had the Yerushalmi Shekalim length of 13 days following the
* Slavuta/Zhytomyr
* Shas used by Rabbi Meir Shapiro. With the start of the eighth Daf Yomi
- * cycle beginning on June 24, 1975 the length of the Yerushalmi Shekalim was changed from 13 to 22 daf to follow
+ * cycle beginning on June 24, 1975, the length of the Yerushalmi Shekalim was changed from 13 to 22 daf to follow
* the Vilna Shas that is in common use today.
*
* @param jewishCalendar
@@ -66,12 +66,12 @@ public class YomiCalculator {
* @return the {@link Daf}.
*
* @throws IllegalArgumentException
- * if the date is prior to the September 11, 1923 start date of the first Daf Yomi cycle
+ * if the date is prior to the September 11, 1923, start date of the first Daf Yomi cycle
*/
public static Daf getDafYomiBavli(JewishCalendar jewishCalendar) {
/*
* The number of daf per masechta. Since the number of blatt in Shekalim changed on the 8th Daf Yomi cycle
- * beginning on June 24, 1975 from 13 to 22, the actual calculation for blattPerMasechta[4] will later be
+ * beginning on June 24, 1975, from 13 to 22, the actual calculation for blattPerMasechta[4] will later be
* adjusted based on the cycle.
*/
int[] blattPerMasechta = { 64, 157, 105, 121, 22, 88, 56, 40, 35, 31, 32, 29, 27, 122, 112, 91, 66, 49, 90, 82,
diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/package-info.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/package-info.java
index 5baee5b3..8ed6ecad 100644
--- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/package-info.java
+++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/package-info.java
@@ -1,17 +1,18 @@
/**
* This package contain classes that represent a Jewish Date/Calendar,
- * and allows conversion between {@link JewishDate Jewish} and {@link java.util.GregorianCalendar Gregorian dates}. The main calendar
- * classes {@link JewishCalendar} and {@link JewishDate} are based on Avrom Finkelstien's code,
+ * and allows conversion between {@link com.kosherjava.zmanim.hebrewcalendar.JewishDate Jewish} and {@link java.util.GregorianCalendar Gregorian dates}. The main calendar
+ * classes {@link com.kosherjava.zmanim.hebrewcalendar.JewishCalendar} and {@link com.kosherjava.zmanim.hebrewcalendar.JewishDate}
+ * are based on Avrom Finkelstien's code,
* refactored to fit the Zmanim API. The parsha and season-based tefila change code was ported by Y. Paritcher from his
* libzmanim code.
*
* Design:
*
- *
* @author © Eliyahu Hershfeld 2011 - 2022
diff --git a/src/main/java/com/kosherjava/zmanim/package-info.java b/src/main/java/com/kosherjava/zmanim/package-info.java
index 13695625..a559e64f 100644
--- a/src/main/java/com/kosherjava/zmanim/package-info.java
+++ b/src/main/java/com/kosherjava/zmanim/package-info.java
@@ -2,10 +2,10 @@
* The KosherJava Zmanim library is an API for a specialized calendar that can calculate different
* astronomical times including sunrise and sunset and Jewish zmanim or religious
* times for prayers and other Jewish religious duties. These classes extend the {@link java.util.GregorianCalendar} and can therefore use the
- * standard Calendar functionality to change dates etc. For non religious astronomical / solar calculations such as sunrise, sunset and twilight, use the {@link AstronomicalCalendar}. The {@link ZmanimCalendar} contains the most
- * commonly used zmanim or religious time calculations. For a much more extensive list of zmanim use the {@link ComplexZmanimCalendar}.
+ * "https://en.wikipedia.org/wiki/Twilight">twilight, use the {@link com.kosherjava.zmanim.AstronomicalCalendar}. The {@link com.kosherjava.zmanim.ZmanimCalendar} contains the most
+ * commonly used zmanim or religious time calculations. For a much more extensive list of zmanim use the {@link com.kosherjava.zmanim.ComplexZmanimCalendar}.
* Note: It is important to read the technical notes on top of the {@link com.kosherjava.zmanim.util.AstronomicalCalculator} documentation.
* Disclaimer:
I did my best to get accurate results using standardized astronomical calculations. Please use care when using the library
* since people rely on the zmanim calculations for halacha lemaaseh.
diff --git a/src/main/java/com/kosherjava/zmanim/util/AstronomicalCalculator.java b/src/main/java/com/kosherjava/zmanim/util/AstronomicalCalculator.java
index 72018144..33afb04c 100644
--- a/src/main/java/com/kosherjava/zmanim/util/AstronomicalCalculator.java
+++ b/src/main/java/com/kosherjava/zmanim/util/AstronomicalCalculator.java
@@ -75,11 +75,11 @@ public void setEarthRadius(double earthRadius) {
private static final double GEOMETRIC_ZENITH = 90;
/**
- * Returns the default class for calculating sunrise and sunset. This is currently the {@link NOAACalculator},
+ * Returns the default class for calculating sunrise and sunset. This is currently the more accurate {@link NOAACalculator},
* but this may change.
*
* @return AstronomicalCalculator the default class for calculating sunrise and sunset. In the current
- * implementation the default calculator returned is the {@link NOAACalculator}.
+ * implementation the default calculator returned is the more accurate {@link NOAACalculator}.
*/
public static AstronomicalCalculator getDefault() {
return new NOAACalculator();
@@ -92,13 +92,6 @@ public static AstronomicalCalculator getDefault() {
*/
public abstract String getCalculatorName();
- /**
- * Setter method for the descriptive name of the calculator. This will typically not have to be set
- *
- * @param calculatorName
- * descriptive name of the algorithm.
- */
-
/**
* A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise. This abstract
* method is implemented by the classes that extend this class.
@@ -115,7 +108,7 @@ public static AstronomicalCalculator getDefault() {
* {@link com.kosherjava.zmanim.AstronomicalCalendar#NAUTICAL_ZENITH} to this method.
* @param adjustForElevation
* Should the time be adjusted for elevation
- * @return The UTC time of sunrise in 24 hour format. 5:45:00 AM will return 5.75.0. If an error was encountered in
+ * @return The UTC time of sunrise in 24-hour format. 5:45:00 AM will return 5.75.0. If an error was encountered in
* the calculation (expected behavior for some locations such as near the poles,
* {@link java.lang.Double#NaN} will be returned.
* @see #getElevationAdjustment(double)
@@ -139,7 +132,7 @@ public abstract double getUTCSunrise(Calendar calendar, GeoLocation geoLocation,
* {@link com.kosherjava.zmanim.AstronomicalCalendar#NAUTICAL_ZENITH} to this method.
* @param adjustForElevation
* Should the time be adjusted for elevation
- * @return The UTC time of sunset in 24 hour format. 5:45:00 AM will return 5.75.0. If an error was encountered in
+ * @return The UTC time of sunset in 24-hour format. 5:45:00 AM will return 5.75.0. If an error was encountered in
* the calculation (expected behavior for some locations such as near the poles,
* {@link java.lang.Double#NaN} will be returned.
* @see #getElevationAdjustment(double)
@@ -150,7 +143,7 @@ public abstract double getUTCSunset(Calendar calendar, GeoLocation geoLocation,
/**
* Return solar noon (UTC) for the given day at the
- * given location on earth. The the {@link com.kosherjava.zmanim.util.NOAACalculator} implementation calculates
+ * given location on earth. The {@link com.kosherjava.zmanim.util.NOAACalculator} implementation calculates
* true solar noon, while the {@link com.kosherjava.zmanim.util.SunTimesCalculator} approximates it, calculating
* the time as halfway between sunrise and sunset.
*
@@ -169,7 +162,7 @@ public abstract double getUTCSunset(Calendar calendar, GeoLocation geoLocation,
* used at sea level. This is only used for sunrise and sunset and not times before or after it such as
* {@link com.kosherjava.zmanim.AstronomicalCalendar#getBeginNauticalTwilight() nautical twilight} since those
* calculations are based on the level of available light at the given dip below the horizon, something that is not
- * affected by elevation, the adjustment should only made if the zenith == 90° {@link #adjustZenith adjusted}
+ * affected by elevation, the adjustment should only be made if the zenith == 90° {@link #adjustZenith adjusted}
* for refraction and solar radius. The algorithm used is
*
*
@@ -203,12 +196,12 @@ public abstract double getUTCSunset(Calendar calendar, GeoLocation geoLocation,
* to be obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16
* minutes of arc (this can be changed via the {@link #setSolarRadius(double)} method , and atmospheric refraction
* accounts for 34 minutes or so (this can be changed via the {@link #setRefraction(double)} method), giving a total
- * of 50 arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset. Since a
- * person at an elevation can see blow the horizon of a person at sea level, this will also adjust the zenith to
+ * of 50 arc minutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset. Since a
+ * person at an elevation can see below the horizon of a person at sea level, this will also adjust the zenith to
* account for elevation if available. Note that this will only adjust the value if the zenith is exactly 90 degrees.
* For values below and above this no correction is done. As an example, astronomical twilight is when the sun is
* 18° below the horizon or {@link com.kosherjava.zmanim.AstronomicalCalendar#ASTRONOMICAL_ZENITH 108°
- * below the zenith}. This is traditionally calculated with none of the above mentioned adjustments. The same goes
+ * below the zenith}. This is traditionally calculated with none of the above-mentioned adjustments. The same goes
* for various tzais and alos times such as the
* {@link com.kosherjava.zmanim.ZmanimCalendar#ZENITH_16_POINT_1 16.1°} dip used in
* {@link com.kosherjava.zmanim.ComplexZmanimCalendar#getAlos16Point1Degrees()}.
@@ -268,9 +261,9 @@ public void setRefraction(double refraction) {
* aphelion it has an apparent radius of 15.755. There is little
* affect for most location, but at high and low latitudes the difference becomes more apparent. My Calculations for
* the difference at the location of the Royal Observatory, Greenwich
- * shows only a 4.494 second difference between the perihelion and aphelion radii, but moving into the arctic circle the
+ * shows only a 4.494-second difference between the perihelion and aphelion radii, but moving into the arctic circle the
* difference becomes more noticeable. Tests for Tromso, Norway (latitude 69.672312, longitude 19.049787) show that
- * on May 17, the rise of the midnight sun, a 2 minute 23 second difference is observed between the perihelion and
+ * on May 17, the rise of the midnight sun, a 2-minute 23-second difference is observed between the perihelion and
* aphelion radii using the USNO algorithm, but only 1 minute and 6 seconds difference using the NOAA algorithm.
* Areas farther north show an even greater difference. Note that these test are not real valid test cases because
* they show the extreme difference on days that are not the perihelion or aphelion, but are shown for illustrative
diff --git a/src/main/java/com/kosherjava/zmanim/util/GeoLocation.java b/src/main/java/com/kosherjava/zmanim/util/GeoLocation.java
index 709caba8..184b3737 100644
--- a/src/main/java/com/kosherjava/zmanim/util/GeoLocation.java
+++ b/src/main/java/com/kosherjava/zmanim/util/GeoLocation.java
@@ -65,7 +65,7 @@ public class GeoLocation implements Cloneable {
private static final int DISTANCE = 0;
/**
- * Constant for a initial bearing type calculation.
+ * Constant for an initial bearing type calculation.
* @see #getGeodesicInitialBearing(GeoLocation)
*/
private static final int INITIAL_BEARING = 1;
@@ -325,21 +325,21 @@ public long getLocalMeanTimeOffset() {
}
/**
- * Adjust the date for antimeridian crossover. This is
+ * Adjust the date for anti meridian crossover. This is
* needed to deal with edge cases such as Samoa that use a different calendar date than expected based on their
* geographic location.
- *
+ *
String
representing the serialized Object
. Very
- * similar to the toString method but the return value is in an xml format. The format currently used (subject to
+ * similar to the toString method but the return value is a xml format. The format currently used (subject to
* change) is:
*
*
diff --git a/src/main/java/com/kosherjava/zmanim/util/NOAACalculator.java b/src/main/java/com/kosherjava/zmanim/util/NOAACalculator.java
index 3785ec62..9fcef686 100644
--- a/src/main/java/com/kosherjava/zmanim/util/NOAACalculator.java
+++ b/src/main/java/com/kosherjava/zmanim/util/NOAACalculator.java
@@ -516,7 +516,7 @@ public double getUTCNoon(Calendar calendar, GeoLocation geoLocation) {
/**
* Return the Universal Coordinated Time (UTC)
- * of of solar noon for the given day at the given location
+ * of solar noon for the given day at the given location
* on earth.
*
* @param julianCenturies
diff --git a/src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java b/src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java
index 806ab6d7..42c864fe 100644
--- a/src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java
+++ b/src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java
@@ -19,13 +19,13 @@
/**
* Implementation of sunrise and sunset methods to calculate astronomical times. This calculator uses the Java algorithm
- * written by Kevin
+ * written by Kevin
* Boone that is based on the US Naval Observatory'sAstronomical Almanac and used with his permission. Added to Kevin's
* code is adjustment of the zenith to account for elevation. This algorithm returns the same time every year and does not
* account for leap years. It is not as accurate as the Jean Meeus based {@link NOAACalculator} that is the default calculator
* use by the KosherJava zmanim library.
- *
+ *
* @author © Eliyahu Hershfeld 2004 - 2023
* @author © Kevin Boone 2000
*/
@@ -61,7 +61,7 @@ public double getUTCSunset(Calendar calendar, GeoLocation geoLocation, double ze
}
/**
- * The number of degrees of longitude that corresponds to one hour time difference.
+ * The number of degrees of longitude that corresponds to one-hour time difference.
*/
private static final double DEG_PER_HOUR = 360.0 / 24.0;
@@ -201,7 +201,7 @@ private static double getCosLocalHourAngle(double sunTrueLongitude, double latit
* the longitude. We can't do anything with this time directly; we must convert it to UTC and then to a local time.
*
* @param localHour the local hour
- * @param sunRightAscensionHours the sun's right ascention in hours
+ * @param sunRightAscensionHours the sun's right ascension in hours
* @param approxTimeDays approximate time days
*
* @return the fractional number of hours since midnight as a double
@@ -243,14 +243,14 @@ private static double getTimeUTC(Calendar calendar, GeoLocation geoLocation, dou
double localMeanTime = getLocalMeanTime(localHour, sunRightAscensionHours,
getApproxTimeDays(dayOfYear, getHoursFromMeridian(geoLocation.getLongitude()), isSunrise));
- double pocessedTime = localMeanTime - getHoursFromMeridian(geoLocation.getLongitude());
- while (pocessedTime < 0.0) {
- pocessedTime += 24.0;
+ double processedTime = localMeanTime - getHoursFromMeridian(geoLocation.getLongitude());
+ while (processedTime < 0.0) {
+ processedTime += 24.0;
}
- while (pocessedTime >= 24.0) {
- pocessedTime -= 24.0;
+ while (processedTime >= 24.0) {
+ processedTime -= 24.0;
}
- return pocessedTime;
+ return processedTime;
}
/**
diff --git a/src/main/java/com/kosherjava/zmanim/util/Time.java b/src/main/java/com/kosherjava/zmanim/util/Time.java
index 671cf251..12575619 100644
--- a/src/main/java/com/kosherjava/zmanim/util/Time.java
+++ b/src/main/java/com/kosherjava/zmanim/util/Time.java
@@ -61,7 +61,7 @@ public class Time {
private boolean isNegative = false;
/**
- * Constructor with parameters for the hours, minutes, seconds and millisecods.
+ * Constructor with parameters for the hours, minutes, seconds and milliseconds.
*
* @param hours the hours to set
* @param minutes the minutes to set
diff --git a/src/main/java/com/kosherjava/zmanim/util/Zman.java b/src/main/java/com/kosherjava/zmanim/util/Zman.java
index 8237c098..23a334cf 100644
--- a/src/main/java/com/kosherjava/zmanim/util/Zman.java
+++ b/src/main/java/com/kosherjava/zmanim/util/Zman.java
@@ -19,10 +19,10 @@
import java.util.Date;
/**
- * A wrapper class for a astronomical times / zmanim that is mostly intended to allow sorting collections of astronomical times.
+ * A wrapper class for an astronomical times / zmanim that is mostly intended to allow sorting collections of astronomical times.
* It has fields for both date/time and duration based zmanim, name / labels as well as a longer description or explanation of a
* zman.
- *
+ *