@hebcal/core 6.0.8 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +2282 -1547
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +17 -19
- package/dist/bundle.min.js.map +1 -1
- package/dist/coverage/block-navigation.d.ts +1 -0
- package/dist/coverage/block-navigation.js +70 -0
- package/dist/coverage/prettify.d.ts +0 -0
- package/dist/coverage/prettify.js +477 -0
- package/dist/coverage/sorter.d.ts +1 -0
- package/dist/coverage/sorter.js +176 -0
- package/dist/eslint.config.d.mts +83 -0
- package/dist/eslint.config.mjs +28 -0
- package/dist/esm/DailyLearning.d.ts +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +5 -5
- package/dist/esm/HebrewDateEvent.js.map +1 -1
- package/dist/esm/HolidayEvent.d.ts +1 -0
- package/dist/esm/HolidayEvent.js +17 -1
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +2 -1
- package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
- package/dist/esm/ParshaEvent.js +2 -1
- package/dist/esm/ParshaEvent.js.map +1 -1
- package/dist/esm/TimedEvent.js +9 -3
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +2 -1
- package/dist/esm/YomKippurKatanEvent.js.map +1 -1
- package/dist/esm/ashkenazi.po.d.ts +14 -2
- package/dist/esm/ashkenazi.po.js +2 -2
- package/dist/esm/ashkenazi.po.js.map +1 -1
- package/dist/esm/calendar.js +6 -8
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +11 -3
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/event.js +18 -1
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +2 -2
- package/dist/esm/getStartAndEnd.js.map +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.d.ts +20 -0
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +3 -3
- package/dist/esm/hebcal.js.map +1 -1
- package/dist/esm/holidays.js +3 -3
- package/dist/esm/holidays.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.d.ts +1 -2
- package/dist/esm/locale.js +1 -1
- package/dist/esm/locale.js.map +1 -1
- package/dist/esm/location.js +7 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.d.ts +71 -1
- package/dist/esm/molad.js +113 -12
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/moladBase.d.ts +15 -0
- package/dist/esm/moladBase.js +83 -0
- package/dist/esm/moladBase.js.map +1 -0
- package/dist/esm/moladDate.d.ts +12 -0
- package/dist/esm/moladDate.js +63 -0
- package/dist/esm/moladDate.js.map +1 -0
- package/dist/esm/omer.d.ts +0 -1
- package/dist/esm/omer.js +7 -4
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +2 -2
- package/dist/esm/parshaName.js.map +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +5 -6
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.js +13 -7
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +4 -4
- package/dist/esm/tachanun.js.map +1 -1
- package/dist/esm/zmanim.d.ts +263 -2
- package/dist/esm/zmanim.js +431 -12
- package/dist/esm/zmanim.js.map +1 -1
- package/dist/po2json.js +3 -4
- package/dist/src/DailyLearning.d.ts +1 -1
- package/dist/src/HebrewDateEvent.js +4 -4
- package/dist/src/HolidayEvent.d.ts +1 -0
- package/dist/src/HolidayEvent.js +16 -0
- package/dist/src/MevarchimChodeshEvent.js +1 -0
- package/dist/src/ParshaEvent.js +1 -0
- package/dist/src/TimedEvent.js +8 -2
- package/dist/src/YomKippurKatanEvent.js +1 -0
- package/dist/src/ashkenazi.po.d.ts +14 -2
- package/dist/src/ashkenazi.po.js +1 -1
- package/dist/src/calendar.js +5 -7
- package/dist/src/candles.js +10 -2
- package/dist/src/event.js +17 -0
- package/dist/src/getStartAndEnd.js +1 -1
- package/dist/src/he-x-NoNikud.po.d.ts +2 -0
- package/dist/src/he-x-NoNikud.po.js +1 -1
- package/dist/src/he.po.d.ts +20 -0
- package/dist/src/he.po.js +1 -1
- package/dist/src/hebcal.js +2 -2
- package/dist/src/holidays.js +2 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/locale.d.ts +1 -2
- package/dist/src/locale.js +1 -1
- package/dist/src/location.js +6 -0
- package/dist/src/molad.d.ts +71 -1
- package/dist/src/molad.js +112 -11
- package/dist/src/moladBase.d.ts +15 -0
- package/dist/src/moladBase.js +78 -0
- package/dist/src/moladDate.d.ts +12 -0
- package/dist/src/moladDate.js +58 -0
- package/dist/src/omer.d.ts +0 -1
- package/dist/src/omer.js +6 -3
- package/dist/src/parshaName.js +1 -1
- package/dist/src/pkgVersion.d.ts +1 -1
- package/dist/src/pkgVersion.js +1 -1
- package/dist/src/reformatTimeStr.js +4 -5
- package/dist/src/sedra.js +12 -6
- package/dist/src/tachanun.js +3 -3
- package/dist/src/zmanim.d.ts +263 -2
- package/dist/src/zmanim.js +429 -10
- package/dist/version.js +1 -2
- package/package.json +17 -19
- package/dist/CalOptions.d.ts +0 -168
- package/dist/DailyLearning.d.ts +0 -32
- package/dist/HebrewDateEvent.d.ts +0 -37
- package/dist/HolidayEvent.d.ts +0 -83
- package/dist/MevarchimChodeshEvent.d.ts +0 -26
- package/dist/ParshaEvent.d.ts +0 -19
- package/dist/TimedEvent.d.ts +0 -47
- package/dist/YomKippurKatanEvent.d.ts +0 -23
- package/dist/ashkenazi.po.d.ts +0 -70
- package/dist/calendar.d.ts +0 -111
- package/dist/candles.d.ts +0 -44
- package/dist/event.d.ts +0 -188
- package/dist/getStartAndEnd.d.ts +0 -6
- package/dist/hallel.d.ts +0 -6
- package/dist/he-x-NoNikud.po.d.ts +0 -16
- package/dist/he.po.d.ts +0 -195
- package/dist/hebcal.d.ts +0 -260
- package/dist/holidays.d.ts +0 -22
- package/dist/index.d.ts +0 -26
- package/dist/isAssurBemlacha.d.ts +0 -9
- package/dist/locale.d.ts +0 -2
- package/dist/location.d.ts +0 -73
- package/dist/modern.d.ts +0 -18
- package/dist/molad.d.ts +0 -62
- package/dist/omer.d.ts +0 -53
- package/dist/parshaName.d.ts +0 -2
- package/dist/parshaYear.d.ts +0 -9
- package/dist/pkgVersion.d.ts +0 -2
- package/dist/reformatTimeStr.d.ts +0 -8
- package/dist/sedra.d.ts +0 -95
- package/dist/size-demo/dist/getHoliday.d.ts +0 -1944
- package/dist/size-demo/dist/getHoliday.js +0 -3712
- package/dist/size-demo/dist/parshiyot.js +0 -10662
- package/dist/size-demo/dist/sedra.d.ts +0 -1411
- package/dist/size-demo/dist/sedra.js +0 -2359
- package/dist/size-demo/dist/tachanun.d.ts +0 -1015
- package/dist/size-demo/dist/tachanun.js +0 -1755
- package/dist/size-demo/getHoliday.d.ts +0 -1
- package/dist/size-demo/getHoliday.js +0 -3
- package/dist/size-demo/parshiyot.d.ts +0 -1
- package/dist/size-demo/parshiyot.js +0 -11
- package/dist/size-demo/rollup.config.d.ts +0 -3
- package/dist/size-demo/rollup.config.js +0 -47
- package/dist/size-demo/sedra.d.ts +0 -1
- package/dist/size-demo/sedra.js +0 -3
- package/dist/size-demo/tachanun.d.ts +0 -1
- package/dist/size-demo/tachanun.js +0 -3
- package/dist/staticHolidays.d.ts +0 -176
- package/dist/tachanun.d.ts +0 -29
- package/dist/zmanim.d.ts +0 -347
package/dist/esm/zmanim.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/*! @hebcal/core v6.0
|
|
1
|
+
/*! @hebcal/core v6.2.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
2
|
import 'temporal-polyfill/global';
|
|
3
3
|
import { NOAACalculator } from '@hebcal/noaa';
|
|
4
|
-
import { getTimezoneOffset, pad2, getPseudoISO,
|
|
4
|
+
import { HDate, getTimezoneOffset, pad2, getPseudoISO, isDate } from '@hebcal/hdate';
|
|
5
|
+
import { Molad } from './molad.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @private
|
|
@@ -21,6 +22,19 @@ function getDate(date) {
|
|
|
21
22
|
return date.greg();
|
|
22
23
|
throw new TypeError(`invalid date: ${date}`);
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
27
|
+
*/
|
|
28
|
+
const GEOMETRIC_ZENITH = 90;
|
|
29
|
+
/**
|
|
30
|
+
* The zenith of 1.583° below {@link GEOMETRIC_ZENITH geometric zenith} (90°). This calculation is used for
|
|
31
|
+
* calculating _netz amiti_ (sunrise) and _shkiah amiti_ (sunset) based on the opinion of the
|
|
32
|
+
* <a href="https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi">Baal Hatanya</a>.
|
|
33
|
+
*
|
|
34
|
+
* @see Zmanim.sunriseBaalHatanya()
|
|
35
|
+
* @see Zmanim.sunsetBaalHatanya()
|
|
36
|
+
*/
|
|
37
|
+
const ZENITH_1_POINT_583 = GEOMETRIC_ZENITH + 1.583;
|
|
24
38
|
/**
|
|
25
39
|
* Calculate halachic times (zmanim / זְמַנִּים) for a given day and location.
|
|
26
40
|
* Calculations are available for tzeit / tzais (nightfall),
|
|
@@ -48,6 +62,10 @@ function getDate(date) {
|
|
|
48
62
|
* const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);
|
|
49
63
|
*/
|
|
50
64
|
class Zmanim {
|
|
65
|
+
plainDate;
|
|
66
|
+
gloc;
|
|
67
|
+
noaa;
|
|
68
|
+
useElevation;
|
|
51
69
|
/**
|
|
52
70
|
* Initialize a Zmanim instance.
|
|
53
71
|
* @param gloc GeoLocation including latitude, longitude, and timezone
|
|
@@ -61,14 +79,13 @@ class Zmanim {
|
|
|
61
79
|
*/
|
|
62
80
|
constructor(gloc, date, useElevation) {
|
|
63
81
|
const dt = getDate(date);
|
|
64
|
-
this.
|
|
65
|
-
this.gloc = gloc;
|
|
66
|
-
const plainDate = Temporal.PlainDate.from({
|
|
82
|
+
this.plainDate = Temporal.PlainDate.from({
|
|
67
83
|
year: dt.getFullYear(),
|
|
68
84
|
month: dt.getMonth() + 1,
|
|
69
85
|
day: dt.getDate(),
|
|
70
86
|
});
|
|
71
|
-
this.
|
|
87
|
+
this.gloc = gloc;
|
|
88
|
+
this.noaa = new NOAACalculator(gloc, this.plainDate);
|
|
72
89
|
this.useElevation = Boolean(useElevation);
|
|
73
90
|
}
|
|
74
91
|
/**
|
|
@@ -93,7 +110,7 @@ class Zmanim {
|
|
|
93
110
|
* @param rising
|
|
94
111
|
*/
|
|
95
112
|
timeAtAngle(angle, rising) {
|
|
96
|
-
const offsetZenith =
|
|
113
|
+
const offsetZenith = GEOMETRIC_ZENITH + angle;
|
|
97
114
|
const zdt = rising
|
|
98
115
|
? this.noaa.getSunriseOffsetByDegrees(offsetZenith)
|
|
99
116
|
: this.noaa.getSunsetOffsetByDegrees(offsetZenith);
|
|
@@ -158,8 +175,8 @@ class Zmanim {
|
|
|
158
175
|
* If elevation is enabled, this function will include elevation in the calculation.
|
|
159
176
|
*/
|
|
160
177
|
gregEve() {
|
|
161
|
-
const
|
|
162
|
-
prev
|
|
178
|
+
const prev0 = this.plainDate.subtract({ days: 1 });
|
|
179
|
+
const prev = new Date(prev0.year, prev0.month - 1, prev0.day);
|
|
163
180
|
const zman = new Zmanim(this.gloc, prev, this.useElevation);
|
|
164
181
|
return zman.sunset();
|
|
165
182
|
}
|
|
@@ -200,6 +217,15 @@ class Zmanim {
|
|
|
200
217
|
alotHaShachar72() {
|
|
201
218
|
return this.sunriseOffset(-72, false, false);
|
|
202
219
|
}
|
|
220
|
+
alotHaShachar72zdt() {
|
|
221
|
+
const zdt = this.useElevation
|
|
222
|
+
? this.noaa.getSunrise()
|
|
223
|
+
: this.noaa.getSeaLevelSunrise();
|
|
224
|
+
if (!zdt) {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
return zdt.subtract({ minutes: 72 });
|
|
228
|
+
}
|
|
203
229
|
/**
|
|
204
230
|
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
|
|
205
231
|
* Because degree-based functions estimate the amount of light in the sky,
|
|
@@ -216,6 +242,12 @@ class Zmanim {
|
|
|
216
242
|
misheyakirMachmir() {
|
|
217
243
|
return this.timeAtAngle(10.2, true);
|
|
218
244
|
}
|
|
245
|
+
getShaahZmanisBasedZmanZdt(startOfDay, endOfDay, hours) {
|
|
246
|
+
const temporalHour = this.noaa.getTemporalHour(startOfDay, endOfDay);
|
|
247
|
+
const offset = Math.trunc(temporalHour * hours);
|
|
248
|
+
const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);
|
|
249
|
+
return zdt;
|
|
250
|
+
}
|
|
219
251
|
/**
|
|
220
252
|
* Utility method for using elevation-aware sunrise/sunset
|
|
221
253
|
* @private
|
|
@@ -228,9 +260,7 @@ class Zmanim {
|
|
|
228
260
|
const endOfDay = this.useElevation
|
|
229
261
|
? this.noaa.getSunset()
|
|
230
262
|
: this.noaa.getSeaLevelSunset();
|
|
231
|
-
const
|
|
232
|
-
const offset = Math.round(temporalHour * hours);
|
|
233
|
-
const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);
|
|
263
|
+
const zdt = this.getShaahZmanisBasedZmanZdt(startOfDay, endOfDay, hours);
|
|
234
264
|
return zdtToDate(zdt);
|
|
235
265
|
}
|
|
236
266
|
/**
|
|
@@ -414,6 +444,15 @@ class Zmanim {
|
|
|
414
444
|
tzeit(angle = 8.5) {
|
|
415
445
|
return this.timeAtAngle(angle, false);
|
|
416
446
|
}
|
|
447
|
+
tzeit72() {
|
|
448
|
+
const zdt = this.useElevation
|
|
449
|
+
? this.noaa.getSunset()
|
|
450
|
+
: this.noaa.getSeaLevelSunset();
|
|
451
|
+
if (!zdt) {
|
|
452
|
+
return null;
|
|
453
|
+
}
|
|
454
|
+
return zdt.add({ minutes: 72 });
|
|
455
|
+
}
|
|
417
456
|
/**
|
|
418
457
|
* Alias for sunrise
|
|
419
458
|
*/
|
|
@@ -442,6 +481,386 @@ class Zmanim {
|
|
|
442
481
|
}
|
|
443
482
|
return new Date(millis - 13.5 * 60 * 1000);
|
|
444
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.
|
|
486
|
+
* @return previous midnight
|
|
487
|
+
*/
|
|
488
|
+
getMidnightLastNight() {
|
|
489
|
+
// reset hour, minutes, seconds and millis
|
|
490
|
+
return this.plainDate.toZonedDateTime({
|
|
491
|
+
timeZone: this.gloc.getTimeZone(),
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.
|
|
496
|
+
* @return following midnight
|
|
497
|
+
*/
|
|
498
|
+
getMidnightTonight() {
|
|
499
|
+
return this.plainDate.add({ days: 1 }).toZonedDateTime({
|
|
500
|
+
timeZone: this.gloc.getTimeZone(),
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Returns the Date of the _molad_ based time if it occurs on the current date. Since _Kiddush Levana_
|
|
505
|
+
* can only be said during the day, there are parameters to limit it to between _alos_ and _tzais_. If
|
|
506
|
+
* the time occurs between _alos_ and _tzais_, _tzais_ will be returned.
|
|
507
|
+
*
|
|
508
|
+
* @param moladBasedTime
|
|
509
|
+
* the _molad_ based time such as _molad_, _tchilas_ and _sof zman Kiddush Levana_
|
|
510
|
+
* @param alos
|
|
511
|
+
* optional start of day to limit _molad_ times to the end of the night before or beginning of the next night.
|
|
512
|
+
* Ignored if either _alos_ or _tzais_ are null.
|
|
513
|
+
* @param tzais
|
|
514
|
+
* optional end of day to limit _molad_ times to the end of the night before or beginning of the next night.
|
|
515
|
+
* Ignored if either _tzais_ or _alos_ are null
|
|
516
|
+
* @param techila
|
|
517
|
+
* is it the start of _Kiddush Levana_ time or the end? If it is start roll it to the next _tzais_,
|
|
518
|
+
* and if it is the end, return the end of the previous night (_alos_ passed in). Ignored if either
|
|
519
|
+
* _alos_ or _tzais_ are null.
|
|
520
|
+
* @return the _molad_ based time. If the _zman_ does not occur during the current date, `null` will be
|
|
521
|
+
* returned.
|
|
522
|
+
*/
|
|
523
|
+
getMoladBasedTime(moladBasedTime, alos, tzais, techila) {
|
|
524
|
+
const lastMidnight = this.getMidnightLastNight();
|
|
525
|
+
const midnightTonight = this.getMidnightTonight();
|
|
526
|
+
if (Temporal.ZonedDateTime.compare(moladBasedTime, lastMidnight) < 0 ||
|
|
527
|
+
Temporal.ZonedDateTime.compare(moladBasedTime, midnightTonight) > 0) {
|
|
528
|
+
return null; // Invalid time, bailout
|
|
529
|
+
}
|
|
530
|
+
if (alos === null || tzais === null) {
|
|
531
|
+
return moladBasedTime.withTimeZone(this.gloc.getTimeZone()); // Not enough info to adjust
|
|
532
|
+
}
|
|
533
|
+
if (Temporal.ZonedDateTime.compare(moladBasedTime, alos) > 0 &&
|
|
534
|
+
Temporal.ZonedDateTime.compare(moladBasedTime, tzais) < 0) {
|
|
535
|
+
// It's the daytime (after alos but before tzais)
|
|
536
|
+
// get the next/prev night
|
|
537
|
+
return techila ? tzais : alos;
|
|
538
|
+
}
|
|
539
|
+
// It's the night, the provided time is valid
|
|
540
|
+
return moladBasedTime.withTimeZone(this.gloc.getTimeZone());
|
|
541
|
+
}
|
|
542
|
+
getHDate() {
|
|
543
|
+
const dt = new Date(this.plainDate.year, this.plainDate.month - 1, this.plainDate.day);
|
|
544
|
+
return new HDate(dt);
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Returns the latest time of Kiddush Levana according to the <a
|
|
548
|
+
* href="https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin">Maharil's</a> opinion that it is calculated as
|
|
549
|
+
* halfway between _molad_ and _molad_. This adds half the 29 days, 12 hours and 793 chalakim time between
|
|
550
|
+
* _molad_ and _molad_ (14 days, 18 hours, 22 minutes and 666 milliseconds) to the month's _molad_.
|
|
551
|
+
* The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to between
|
|
552
|
+
* _tzais_ and _alos_, see {@link getSofZmanKidushLevanaBetweenMoldos}.
|
|
553
|
+
*
|
|
554
|
+
* @param alos
|
|
555
|
+
* the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and
|
|
556
|
+
* ending at _tzais_), the time returned will be alos. If either the _alos_ or _tzais_ parameters
|
|
557
|
+
* are null, no daytime adjustment will be made.
|
|
558
|
+
* @param tzais
|
|
559
|
+
* the end of the Jewish day. If Kidush Levana occurs during the day (starting at alos and ending at
|
|
560
|
+
* tzais), the time returned will be alos. If either the alos or tzais parameters are null, no daytime
|
|
561
|
+
* adjustment will be made.
|
|
562
|
+
* @return the Date representing the moment halfway between molad and molad. If the time occurs between
|
|
563
|
+
* _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this
|
|
564
|
+
* day, a `null` will be returned.
|
|
565
|
+
*/
|
|
566
|
+
getSofZmanKidushLevanaBetweenMoldos(alos = null, tzais = null) {
|
|
567
|
+
const hd = this.getHDate();
|
|
568
|
+
// Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in French
|
|
569
|
+
// Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush Levana
|
|
570
|
+
// will be on the 12th of the Teves. In the case of Anadyr, Russia on Jan, 2071, sof zman Kiddush Levana between the
|
|
571
|
+
// moldos will occur is on the night of 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).
|
|
572
|
+
if (hd.getDate() < 11 || hd.getDate() > 16) {
|
|
573
|
+
return null;
|
|
574
|
+
}
|
|
575
|
+
const molad = new Molad(hd.getFullYear(), hd.getMonth());
|
|
576
|
+
return this.getMoladBasedTime(molad.getSofZmanKidushLevanaBetweenMoldos(), alos, tzais, false);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Returns the latest time of _Kiddush Levana_ calculated as 15 days after the molad. This is the opinion of
|
|
580
|
+
* the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that the
|
|
581
|
+
* <a href="https://en.wikipedia.org/wiki/Moses_Isserles">Rema</a> who brings down the opinion of the <a
|
|
582
|
+
* href="https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin">Maharil's</a> of calculating
|
|
583
|
+
* {@link getSofZmanKidushLevanaBetweenMoldos half way between _molad_ and _molad_} is of
|
|
584
|
+
* the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on the subject,
|
|
585
|
+
* See Rabbi Dovid Heber's very detailed write-up in Siman Daled (chapter 4) of <a href="https://hebrewbooks.org/53000">Shaarei
|
|
586
|
+
* Zmanim</a>. The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to
|
|
587
|
+
* between _tzais_ and _alos_, see {@link getSofZmanKidushLevana15Days}.
|
|
588
|
+
*
|
|
589
|
+
* @return the Date representing the moment 15 days after the _molad_. If the time occurs between
|
|
590
|
+
* _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day, a
|
|
591
|
+
* `null` will be returned.
|
|
592
|
+
*
|
|
593
|
+
*
|
|
594
|
+
*/
|
|
595
|
+
getSofZmanKidushLevana15Days(alos = null, tzais = null) {
|
|
596
|
+
const hd = this.getHDate();
|
|
597
|
+
// Do not calculate for impossible dates, but account for extreme cases. In the extreme case of Rapa Iti in
|
|
598
|
+
// French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on _Rosh Chodesh_, the sof zman Kiddush
|
|
599
|
+
// Levana will be on the 12th of the Teves. in the case of Anadyr, Russia on Jan, 2071, sof zman kiddush levana will
|
|
600
|
+
// occur after midnight on the 17th of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).
|
|
601
|
+
if (hd.getDate() < 11 || hd.getDate() > 17) {
|
|
602
|
+
return null;
|
|
603
|
+
}
|
|
604
|
+
const molad = new Molad(hd.getFullYear(), hd.getMonth());
|
|
605
|
+
return this.getMoladBasedTime(molad.getSofZmanKidushLevana15Days(), alos, tzais, false);
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Returns the earliest time of _Kiddush Levana_ according to <a href=
|
|
609
|
+
* "https://en.wikipedia.org/wiki/Yonah_Gerondi">Rabbeinu Yonah</a>'s opinion that it can be said 3 days after the _molad_.
|
|
610
|
+
* If the time of _tchilas zman Kiddush Levana_ occurs during the day (between _alos_ and _tzais_ passed to
|
|
611
|
+
* this method) it will return the following _tzais_. If null is passed for either _alos_ or _tzais_, the actual
|
|
612
|
+
* _tchilas zman Kiddush Levana_ will be returned, regardless of if it is during the day or not.
|
|
613
|
+
*
|
|
614
|
+
* @param alos
|
|
615
|
+
* the beginning of the Jewish day. If Kidush Levana occurs during the day (starting at _alos_ and ending
|
|
616
|
+
* at _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
|
|
617
|
+
* are null, no daytime adjustment will be made.
|
|
618
|
+
* @param tzais
|
|
619
|
+
* the end of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and ending at
|
|
620
|
+
* _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
|
|
621
|
+
* are null, no daytime adjustment will be made.
|
|
622
|
+
*
|
|
623
|
+
* @return the Date representing the moment 3 days after the molad. If the time occurs between _alos_ and
|
|
624
|
+
* _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day, a
|
|
625
|
+
* `null` will be returned.
|
|
626
|
+
*/
|
|
627
|
+
getTchilasZmanKidushLevana3Days(alos = null, tzais = null) {
|
|
628
|
+
const hd = this.getHDate();
|
|
629
|
+
// Do not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 3 days for
|
|
630
|
+
// the extreme case of Rapa Iti in French Polynesia on Dec 2027 when kiddush Levana 3 days can be said on the evening
|
|
631
|
+
// of the 30th, the second night of Rosh Chodesh. The 3rd day after the _molad_ will be on the 4th of the month.
|
|
632
|
+
// In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 3rd day
|
|
633
|
+
// from the molad will be on the 5th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).
|
|
634
|
+
if (hd.getDate() > 5 && hd.getDate() < 30) {
|
|
635
|
+
return null;
|
|
636
|
+
}
|
|
637
|
+
const molad = new Molad(hd.getFullYear(), hd.getMonth());
|
|
638
|
+
let zman = this.getMoladBasedTime(molad.getTchilasZmanKidushLevana3Days(), alos, tzais, true);
|
|
639
|
+
// Get the following month's zman kiddush Levana for the extreme case of Rapa Iti in French Polynesia on Dec 2027 when
|
|
640
|
+
// kiddush Levana can be said on Rosh Chodesh (the evening of the 30th). See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (page 32)
|
|
641
|
+
if (zman === null && hd.getDate() === 30) {
|
|
642
|
+
const hd2 = hd.add(1, 'week');
|
|
643
|
+
const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());
|
|
644
|
+
zman = this.getMoladBasedTime(molad2.getTchilasZmanKidushLevana3Days(), null, null, true);
|
|
645
|
+
}
|
|
646
|
+
return zman;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Returns the point in time of _Molad_ as a <code>Date</code> Object. For the traditional day of week, hour,
|
|
650
|
+
* minute and chalakim, {@link Molad.getInstant()} and the not yet completed
|
|
651
|
+
* {@link HebrewDateFormatter} that will have formatting for this.
|
|
652
|
+
*
|
|
653
|
+
* @return the Date representing the moment of the molad. If the _molad_ does not occur on this day, a
|
|
654
|
+
* `null` will be returned.
|
|
655
|
+
*
|
|
656
|
+
*/
|
|
657
|
+
getZmanMolad() {
|
|
658
|
+
const hd = this.getHDate();
|
|
659
|
+
// Optimize to not calculate for impossible dates, but account for extreme cases. The molad in the extreme case of Rapa
|
|
660
|
+
// Iti in French Polynesia on Dec 2027 occurs on the night of the 27th of Kislev. In the case of Anadyr, Russia on
|
|
661
|
+
// Jan 2071, the molad will be on the 2nd day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).
|
|
662
|
+
if (hd.getDate() > 2 && hd.getDate() < 27) {
|
|
663
|
+
return null;
|
|
664
|
+
}
|
|
665
|
+
const molad = new Molad(hd.getFullYear(), hd.getMonth());
|
|
666
|
+
let zman = this.getMoladBasedTime(molad.getInstant(), null, null, true);
|
|
667
|
+
// deal with molad that happens on the end of the previous month
|
|
668
|
+
if (zman === null && hd.getDate() > 26) {
|
|
669
|
+
const hd2 = hd.add(1, 'week');
|
|
670
|
+
const molad2 = new Molad(hd2.getFullYear(), hd2.getMonth());
|
|
671
|
+
zman = this.getMoladBasedTime(molad2.getInstant(), null, null, true);
|
|
672
|
+
}
|
|
673
|
+
return zman;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Returns the earliest time of _Kiddush Levana_ according to the opinions that it should not be said until 7
|
|
677
|
+
* days after the _molad_. The time will be returned even if it occurs during the day when _Kiddush Levana_
|
|
678
|
+
* can't be recited. Use {@link getTchilasZmanKidushLevana7Days} if you want to limit the time to night hours.
|
|
679
|
+
*
|
|
680
|
+
* @return the Date representing the moment 7 days after the molad regardless of it is day or night. If the _zman_
|
|
681
|
+
* will not occur on this day, a `null` will be returned.
|
|
682
|
+
*/
|
|
683
|
+
getTchilasZmanKidushLevana7Days(alos = null, tzais = null) {
|
|
684
|
+
const hd = this.getHDate();
|
|
685
|
+
// Optimize to not calculate for impossible dates, but account for extreme cases. Tchilas zman kiddush Levana 7 days for
|
|
686
|
+
// the extreme case of Rapa Iti in French Polynesia on Jan 2028 (when kiddush Levana 3 days can be said on the evening
|
|
687
|
+
// of the 30th, the second night of Rosh Chodesh), the 7th day after the molad will be on the 4th of the month.
|
|
688
|
+
// In the case of Anadyr, Russia on Jan, 2071, when sof zman kiddush levana is on the 17th of the month, the 7th day
|
|
689
|
+
// from the molad will be on the 9th day of Shevat. See Rabbi Dovid Heber's Shaarei Zmanim chapter 4 (pages 28 and 32).
|
|
690
|
+
if (hd.getDate() < 4 || hd.getDate() > 9) {
|
|
691
|
+
return null;
|
|
692
|
+
}
|
|
693
|
+
const molad = new Molad(hd.getFullYear(), hd.getMonth());
|
|
694
|
+
return this.getMoladBasedTime(molad.getTchilasZmanKidushLevana7Days(), alos, tzais, true);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* A method that returns the <a href="https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi">Baal Hatanya</a>'s
|
|
698
|
+
* _netz amiti_ (sunrise) without
|
|
699
|
+
* elevation adjustment. This forms the base for the Baal Hatanya's dawn-based calculations that are
|
|
700
|
+
* calculated as a dip below the horizon before sunrise.
|
|
701
|
+
*
|
|
702
|
+
* According to the Baal Hatanya, _netz amiti_, or true (halachic) sunrise, is when the top of the sun's
|
|
703
|
+
* disk is visible at an elevation similar to the mountains of Eretz Yisrael. The time is calculated as the point at which
|
|
704
|
+
* the center of the sun's disk is 1.583° below the horizon. This degree-based calculation can be found in Rabbi Shalom
|
|
705
|
+
* DovBer Levine's commentary on The <a href="https://www.chabadlibrary.org/books/pdf/Seder-Hachnosas-Shabbos.pdf">Baal
|
|
706
|
+
* Hatanya's Seder Hachnasas Shabbos</a>. From an elevation of 546 meters, the top of <a href=
|
|
707
|
+
* "https://en.wikipedia.org/wiki/Mount_Carmel">Har Hacarmel</a>, the sun disappears when it is 1° 35' or 1.583°
|
|
708
|
+
* below the sea level horizon. This in turn is based on the Gemara <a href=
|
|
709
|
+
* "https://hebrewbooks.org/shas.aspx?mesechta=2&daf=35">Shabbos 35a</a>. There are other opinions brought down by
|
|
710
|
+
* Rabbi Levine, including Rabbi Yosef Yitzchok Feigelstock who calculates it as the degrees below the horizon 4 minutes after
|
|
711
|
+
* sunset in Yerushalayim (on the equinox). That is brought down as 1.583°. This is identical to the 1° 35' _zman_
|
|
712
|
+
* and is probably a typo and should be 1.683°. These calculations are used by most <a href=
|
|
713
|
+
* "https://en.wikipedia.org/wiki/Chabad">Chabad</a> calendars that use the Baal Hatanya's _zmanim_. See
|
|
714
|
+
* <a href="https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm">About Our
|
|
715
|
+
* _Zmanim_ Calculations @ Chabad.org</a>.
|
|
716
|
+
*
|
|
717
|
+
* Note: _netz amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For
|
|
718
|
+
* practical purposes, daytime _mitzvos_ like _shofar_ and _lulav_ should not be done until after the
|
|
719
|
+
* published time for _netz_ / sunrise.
|
|
720
|
+
*
|
|
721
|
+
* @return the <code>Date</code> representing the exact sea level _netz amiti_ (sunrise) time. If the calculation can't be
|
|
722
|
+
* computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one
|
|
723
|
+
* where it does not set, a `null` will be returned. See detailed explanation on top of the page.
|
|
724
|
+
*
|
|
725
|
+
* @see ZENITH_1_POINT_583
|
|
726
|
+
*/
|
|
727
|
+
getSunriseBaalHatanya() {
|
|
728
|
+
return this.noaa.getSunriseOffsetByDegrees(ZENITH_1_POINT_583);
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* A method that returns the <a href="https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi">Baal Hatanya</a>'s
|
|
732
|
+
* _shkiah amiti_ (sunset) without
|
|
733
|
+
* elevation adjustment. This forms the base for the Baal Hatanya's dusk-based calculations that are calculated
|
|
734
|
+
* as a dip below the horizon after sunset.
|
|
735
|
+
*
|
|
736
|
+
* According to the Baal Hatanya, _shkiah amiti_, true (_halachic_) sunset, is when the top of the
|
|
737
|
+
* sun's disk disappears from view at an elevation similar to the mountains of _Eretz Yisrael_.
|
|
738
|
+
* This time is calculated as the point at which the center of the sun's disk is 1.583 degrees below the horizon.
|
|
739
|
+
*
|
|
740
|
+
* Note: _shkiah amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For
|
|
741
|
+
* practical purposes, all daytime mitzvos should be completed before the published time for _shkiah_ / sunset.
|
|
742
|
+
*
|
|
743
|
+
* For further explanation of the calculations used for the Baal Hatanya's _zmanim_ in this library, see
|
|
744
|
+
* <a href="https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm">About Our
|
|
745
|
+
* _Zmanim_ Calculations @ Chabad.org</a>.
|
|
746
|
+
*
|
|
747
|
+
* @return the <code>Date</code> representing the exact sea level _shkiah amiti_ (sunset) time. If the calculation
|
|
748
|
+
* can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not
|
|
749
|
+
* rise, and one where it does not set, a `null` will be returned.
|
|
750
|
+
*
|
|
751
|
+
* @see ZENITH_1_POINT_583
|
|
752
|
+
*/
|
|
753
|
+
getSunsetBaalHatanya() {
|
|
754
|
+
return this.noaa.getSunsetOffsetByDegrees(ZENITH_1_POINT_583);
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Returns the <a href="https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi">Baal Hatanya</a>'s _alos_
|
|
758
|
+
* (dawn) calculated as the time when the sun is 16.9° below the eastern {@link GEOMETRIC_ZENITH geometric horizon}
|
|
759
|
+
* before {@link getSunrise() sunrise}.
|
|
760
|
+
*
|
|
761
|
+
* The zenith of 16.9° below is based on the calculation that the time between dawn
|
|
762
|
+
* and <em>netz amiti</em> (sunrise) is 72 minutes, the time that is takes to walk 4 mil at 18 minutes
|
|
763
|
+
* a mil (<a href="https://en.wikipedia.org/wiki/Maimonides">Rambam</a> and others). The sun's position at 72
|
|
764
|
+
* minutes before {@link getSunriseBaalHatanya <em>netz amiti</em> (sunrise)} in Jerusalem <a href=
|
|
765
|
+
* "https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/">around the equinox / equilux</a> is
|
|
766
|
+
* 16.9° below {@link GEOMETRIC_ZENITH geometric zenith}.
|
|
767
|
+
*
|
|
768
|
+
* @return The <code>Date</code> of dawn. If the calculation can't be computed such as northern and southern
|
|
769
|
+
* locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach
|
|
770
|
+
* low enough below the horizon for this calculation, a `null` will be returned. */
|
|
771
|
+
alosBaalHatanya() {
|
|
772
|
+
return this.timeAtAngle(16.9, true);
|
|
773
|
+
}
|
|
774
|
+
getShaahZmanisBaalHatanya(hours) {
|
|
775
|
+
const zdt = this.getShaahZmanisBasedZmanZdt(this.getSunriseBaalHatanya(), this.getSunsetBaalHatanya(), hours);
|
|
776
|
+
return zdtToDate(zdt);
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* This method returns the latest _zman krias shema_ (time to recite Shema in the morning). This time is 3
|
|
780
|
+
* {@link shaahZmanisBaalHatanya() _shaos zmaniyos_} (solar hours) after {@link getSunriseBaalHatanya()
|
|
781
|
+
* _netz amiti_ (sunrise)} based on the opinion of the Baal Hatanya that the day is calculated from
|
|
782
|
+
* sunrise to sunset. This returns the time 3 * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya()
|
|
783
|
+
* _netz amiti_ (sunrise)}.
|
|
784
|
+
*
|
|
785
|
+
* @return the <code>Date</code> of the latest _zman shema_ according to the Baal Hatanya. If the calculation
|
|
786
|
+
* can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does
|
|
787
|
+
* not rise, and one where it does not set, a `null` will be returned.
|
|
788
|
+
*/
|
|
789
|
+
sofZmanShmaBaalHatanya() {
|
|
790
|
+
return this.getShaahZmanisBaalHatanya(3);
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* This method returns the latest _zman tfilah_ (time to recite the morning prayers). This time is 4
|
|
794
|
+
* hours into the day based on the opinion of the Baal Hatanya that the day is
|
|
795
|
+
* calculated from sunrise to sunset. This returns the time 4 * {@link getShaahZmanisBaalHatanya()} after
|
|
796
|
+
* {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.
|
|
797
|
+
*
|
|
798
|
+
* @return the <code>Date</code> of the latest _zman tfilah_. If the calculation can't be computed such as in
|
|
799
|
+
* the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it does
|
|
800
|
+
* not set, a `null` will be returned.
|
|
801
|
+
*/
|
|
802
|
+
sofZmanTfilaBaalHatanya() {
|
|
803
|
+
return this.getShaahZmanisBaalHatanya(4);
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* This method returns the time of _mincha gedola_. _Mincha gedola_ is the earliest time one can pray
|
|
807
|
+
* _mincha_. The <a href="https://en.wikipedia.org/wiki/Maimonides">Rambam</a> is of the opinion that it is
|
|
808
|
+
* better to delay _mincha_ until {@link minchaKetanaBaalHatanya() _mincha ketana_} while the
|
|
809
|
+
* <a href="https://en.wikipedia.org/wiki/Asher_ben_Jehiel">Ra"sh</a>,
|
|
810
|
+
* <a href="https://en.wikipedia.org/wiki/Jacob_ben_Asher">Tur</a>, <a href=
|
|
811
|
+
* "https://en.wikipedia.org/wiki/Vilna_Gaon">GRA</a> and others are of the opinion that _mincha_ can be prayed
|
|
812
|
+
* _lechatchila_ starting at _mincha gedola_. This is calculated as 6.5 {@link getShaahZmanisBaalHatanya()
|
|
813
|
+
* sea level solar hours} after {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}. This calculation is based
|
|
814
|
+
* on the opinion of the Baal Hatanya that the day is calculated from sunrise to sunset. This returns the time 6.5
|
|
815
|
+
* * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya() _netz amiti_ ("real" sunrise)}.
|
|
816
|
+
* @return the <code>Date</code> of the time of _mincha gedola_ according to the Baal Hatanya. If the calculation
|
|
817
|
+
* 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,
|
|
818
|
+
* and one where it does not set, a `null` will be returned.
|
|
819
|
+
*/
|
|
820
|
+
minchaGedolaBaalHatanya() {
|
|
821
|
+
return this.getShaahZmanisBaalHatanya(6.5);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* This method returns the time of _mincha ketana_. This is the preferred earliest time to pray
|
|
825
|
+
* _mincha_ in the opinion of the <a href="https://en.wikipedia.org/wiki/Maimonides">Rambam</a> and others.
|
|
826
|
+
* For more information on this see the documentation on {@link minchaGedolaBaalHatanya() _mincha gedola_}.
|
|
827
|
+
* This is calculated as 9.5 sea level solar hours after {@link getSunriseBaalHatanya
|
|
828
|
+
* _netz amiti_ (sunrise)}. This calculation is calculated based on the opinion of the Baal Hatanya that the
|
|
829
|
+
* day is calculated from sunrise to sunset. This returns the time 9.5 * after
|
|
830
|
+
* _netz amiti_ (sunrise).
|
|
831
|
+
*
|
|
832
|
+
* @return the <code>Date</code> of the time of _mincha ketana_. If the calculation can't be computed such as
|
|
833
|
+
* in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it
|
|
834
|
+
* does not set, a `null` will be returned.
|
|
835
|
+
*/
|
|
836
|
+
minchaKetanaBaalHatanya() {
|
|
837
|
+
return this.getShaahZmanisBaalHatanya(9.5);
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* This method returns the time of _plag hamincha_. This is calculated as 10.75 hours after sunrise. This
|
|
841
|
+
* calculation is based on the opinion of the Baal Hatanya that the day is calculated
|
|
842
|
+
* from sunrise to sunset. This returns the time 10.75 * {@link getShaahZmanisBaalHatanya()} after
|
|
843
|
+
* {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.
|
|
844
|
+
*
|
|
845
|
+
* @return the <code>Date</code> of the time of _plag hamincha_. If the calculation can't be computed such as
|
|
846
|
+
* in the Arctic Circle where there is at least one day a year where the sun does not rise, and one where it
|
|
847
|
+
* does not set, a `null` will be returned.
|
|
848
|
+
*/
|
|
849
|
+
plagHaminchaBaalHatanya() {
|
|
850
|
+
return this.getShaahZmanisBaalHatanya(10.75);
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* A method that returns _tzais_ (nightfall) when the sun is 6° below the western geometric horizon
|
|
854
|
+
* (90°) after {@link getSunset() sunset}. For information on the source of this calculation see
|
|
855
|
+
* {@link ZENITH_6_DEGREES}.
|
|
856
|
+
*
|
|
857
|
+
* @return The <code>Date</code> of nightfall. If the calculation can't be computed such as northern and southern
|
|
858
|
+
* locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach
|
|
859
|
+
* low enough below the horizon for this calculation, a `null` will be returned. * @see ZENITH_6_DEGREES
|
|
860
|
+
*/
|
|
861
|
+
tzaisBaalHatanya() {
|
|
862
|
+
return this.timeAtAngle(6, false);
|
|
863
|
+
}
|
|
445
864
|
/**
|
|
446
865
|
* Uses timeFormat to return a date like '20:34'.
|
|
447
866
|
* Returns `XX:XX` if the date is invalid.
|