|
1 | 1 | /*
|
2 | 2 | * Zmanim Java API
|
3 |
| - * Copyright (C) 2004-2022 Eliyahu Hershfeld |
| 3 | + * Copyright (C) 2004-2023 Eliyahu Hershfeld |
4 | 4 | *
|
5 | 5 | * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
|
6 | 6 | * Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
|
|
10 | 10 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
11 | 11 | * details.
|
12 | 12 | * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
|
13 |
| - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA, |
| 13 | + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA, |
14 | 14 | * or connect to: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
15 | 15 | */
|
16 | 16 | package com.kosherjava.zmanim;
|
|
106 | 106 | * <h2>Documentation from the {@link ZmanimCalendar} parent class</h2>
|
107 | 107 | * {@inheritDoc}
|
108 | 108 | *
|
109 |
| - * @author © Eliyahu Hershfeld 2004 - 2022 |
| 109 | + * @author © Eliyahu Hershfeld 2004 - 2023 |
110 | 110 | */
|
111 | 111 | public class ComplexZmanimCalendar extends ZmanimCalendar {
|
112 | 112 |
|
@@ -3797,9 +3797,7 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() {
|
3797 | 3797 | public Date getSolarMidnight() {
|
3798 | 3798 | ZmanimCalendar clonedCal = (ZmanimCalendar) clone();
|
3799 | 3799 | clonedCal.getCalendar().add(Calendar.DAY_OF_MONTH, 1);
|
3800 |
| - Date sunset = getSeaLevelSunset(); |
3801 |
| - Date sunrise = clonedCal.getSeaLevelSunrise(); |
3802 |
| - return getTimeOffset(sunset, getTemporalHour(sunset, sunrise) * 6); |
| 3800 | + return getTimeOffset(getChatzos(), clonedCal.getChatzos().getTime() - getChatzos().getTime()); |
3803 | 3801 | }
|
3804 | 3802 |
|
3805 | 3803 | /**
|
@@ -3996,6 +3994,7 @@ public Date getSofZmanBiurChametzBaalHatanya() {
|
3996 | 3994 | * sea level solar hours} after {@link #getSunriseBaalHatanya() <em>netz amiti</em> (sunrise)}. This calculation is based
|
3997 | 3995 | * on the opinion of the Baal Hatanya that the day is calculated from sunrise to sunset. This returns the time 6.5
|
3998 | 3996 | * * {@link #getShaahZmanisBaalHatanya()} after {@link #getSunriseBaalHatanya() <em>netz amiti</em> ("real" sunrise)}.
|
| 3997 | + * |
3999 | 3998 | * @see #getMinchaGedola(Date, Date)
|
4000 | 3999 | * @see #getShaahZmanisBaalHatanya()
|
4001 | 4000 | * @see #getMinchaKetanaBaalHatanya()
|
|
0 commit comments