@hebcal/core 6.8.2 → 6.9.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/README.md +262 -4
- package/dist/bundle.js +1400 -942
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +18 -17
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/CalOptions.d.ts +11 -1
- package/dist/esm/DailyLearning.d.ts +4 -4
- package/dist/esm/DailyLearning.js +5 -5
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.d.ts +7 -2
- package/dist/esm/HolidayEvent.js +8 -3
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.d.ts +2 -1
- package/dist/esm/MevarchimChodeshEvent.js +3 -2
- package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
- package/dist/esm/ParshaEvent.d.ts +13 -0
- package/dist/esm/ParshaEvent.js +14 -1
- package/dist/esm/ParshaEvent.js.map +1 -1
- package/dist/esm/TimedEvent.d.ts +12 -4
- package/dist/esm/TimedEvent.js +13 -5
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.d.ts +2 -1
- package/dist/esm/YomKippurKatanEvent.js +3 -2
- package/dist/esm/YomKippurKatanEvent.js.map +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.d.ts +17 -7
- package/dist/esm/calendar.js +23 -10
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.d.ts +19 -1
- package/dist/esm/candles.js +20 -2
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/cities.json.js +1 -1
- package/dist/esm/event.d.ts +2 -4
- package/dist/esm/event.js +3 -5
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.d.ts +31 -96
- package/dist/esm/hebcal.js +34 -107
- package/dist/esm/hebcal.js.map +1 -1
- package/dist/esm/holidays.d.ts +8 -1
- package/dist/esm/holidays.js +2 -2
- package/dist/esm/holidays.js.map +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isAssurBemlacha.js +6 -3
- package/dist/esm/isAssurBemlacha.js.map +1 -1
- package/dist/esm/isAveilut.js +1 -1
- package/dist/esm/isFastDay.d.ts +1 -1
- package/dist/esm/isFastDay.js +2 -2
- package/dist/esm/isFastDay.js.map +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.d.ts +37 -9
- package/dist/esm/location.js +38 -10
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.d.ts +26 -20
- package/dist/esm/molad.js +27 -21
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/moladBase.d.ts +11 -0
- package/dist/esm/moladBase.js +12 -1
- package/dist/esm/moladBase.js.map +1 -1
- package/dist/esm/moladDate.d.ts +10 -6
- package/dist/esm/moladDate.js +25 -18
- package/dist/esm/moladDate.js.map +1 -1
- package/dist/esm/omer.d.ts +19 -3
- package/dist/esm/omer.js +20 -4
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.d.ts +2 -2
- package/dist/esm/parshaYear.js +3 -3
- package/dist/esm/parshaYear.js.map +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.d.ts +14 -2
- package/dist/esm/reformatTimeStr.js +15 -3
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.d.ts +44 -18
- package/dist/esm/sedra.js +39 -17
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/sefira.json.js +1 -1
- package/dist/esm/staticHolidays.d.ts +0 -2
- package/dist/esm/staticHolidays.js +1 -3
- package/dist/esm/staticHolidays.js.map +1 -1
- package/dist/esm/string.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.d.ts +177 -142
- package/dist/esm/zmanim.js +183 -148
- package/dist/esm/zmanim.js.map +1 -1
- package/package.json +8 -9
package/dist/esm/zmanim.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { HDate } from '@hebcal/hdate';
|
|
|
17
17
|
* https://gml.noaa.gov/grad/solcalc/calcdetails.html
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
*
|
|
20
|
+
* import {GeoLocation, Zmanim} from '@hebcal/core';
|
|
21
21
|
* const latitude = 41.822232;
|
|
22
22
|
* const longitude = -71.448292;
|
|
23
23
|
* const tzid = 'America/New_York';
|
|
@@ -26,6 +26,7 @@ import { HDate } from '@hebcal/hdate';
|
|
|
26
26
|
* const zmanim = new Zmanim(gloc, friday, false);
|
|
27
27
|
* const candleLighting = zmanim.sunsetOffset(-18, true);
|
|
28
28
|
* const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);
|
|
29
|
+
* // '2023-09-08T18:49:00-04:00'
|
|
29
30
|
*/
|
|
30
31
|
export declare class Zmanim {
|
|
31
32
|
private readonly hdate;
|
|
@@ -46,21 +47,27 @@ export declare class Zmanim {
|
|
|
46
47
|
*/
|
|
47
48
|
constructor(gloc: GeoLocation, date: Date | HDate, useElevation: boolean);
|
|
48
49
|
/**
|
|
49
|
-
* Returns `true` if
|
|
50
|
-
*
|
|
50
|
+
* Returns `true` if this instance uses the location's elevation when
|
|
51
|
+
* calculating sunrise/sunset-based zmanim.
|
|
51
52
|
*/
|
|
52
53
|
getUseElevation(): boolean;
|
|
53
54
|
/**
|
|
54
|
-
* Enables or disables elevation adjustment for zmanim
|
|
55
|
-
*
|
|
55
|
+
* Enables or disables elevation adjustment for sunrise/sunset-based zmanim.
|
|
56
|
+
*
|
|
57
|
+
* Degree-based zmanim (such as {@link alotHaShachar} or {@link tzeit})
|
|
58
|
+
* estimate the amount of light in the sky and are never affected by this
|
|
59
|
+
* setting.
|
|
60
|
+
* @param useElevation `true` to include the location's elevation
|
|
56
61
|
*/
|
|
57
62
|
setUseElevation(useElevation: boolean): void;
|
|
58
63
|
/**
|
|
59
64
|
* Convenience function to get the time when sun is above or below the horizon
|
|
60
65
|
* for a certain angle (in degrees).
|
|
61
66
|
* This function does not support elevation adjustment.
|
|
62
|
-
* @param angle
|
|
63
|
-
*
|
|
67
|
+
* @param angle degrees of solar depression below the horizon; for example
|
|
68
|
+
* `8.5` means the center of the sun is 8.5° below the horizon
|
|
69
|
+
* @param rising `true` for the morning (before sunrise), `false` for the
|
|
70
|
+
* evening (after sunset)
|
|
64
71
|
*/
|
|
65
72
|
timeAtAngle(angle: number, rising: boolean): Date;
|
|
66
73
|
/**
|
|
@@ -101,11 +108,17 @@ export declare class Zmanim {
|
|
|
101
108
|
*/
|
|
102
109
|
gregEve(): Date;
|
|
103
110
|
/**
|
|
104
|
-
*
|
|
111
|
+
* Length in milliseconds of one halachic hour of the night, calculated as
|
|
112
|
+
* one twelfth of the time between the previous day's sunset and this
|
|
113
|
+
* day's sunrise. Used internally by {@link chatzotNight}.
|
|
105
114
|
*/
|
|
106
115
|
nightHour(): number;
|
|
107
116
|
/**
|
|
108
|
-
* Midday – Chatzot; Sunrise plus 6 halachic hours
|
|
117
|
+
* Midday – Chatzot; Sunrise plus 6 halachic hours.
|
|
118
|
+
*
|
|
119
|
+
* Unlike most sunrise/sunset-based zmanim, this is always computed from
|
|
120
|
+
* sea-level sunrise and sunset, so it is not affected by the
|
|
121
|
+
* `useElevation` setting.
|
|
109
122
|
*/
|
|
110
123
|
chatzot(): Date;
|
|
111
124
|
/**
|
|
@@ -124,6 +137,11 @@ export declare class Zmanim {
|
|
|
124
137
|
* sea level sunrise.
|
|
125
138
|
*/
|
|
126
139
|
alotHaShachar72(): Date;
|
|
140
|
+
/**
|
|
141
|
+
* Same as {@link alotHaShachar72}, but returns a `Temporal.ZonedDateTime`
|
|
142
|
+
* with seconds precision (instead of a `Date` rounded to the minute), or
|
|
143
|
+
* `null` if sunrise cannot be calculated for this date and location.
|
|
144
|
+
*/
|
|
127
145
|
alotHaShachar72zdt(): Temporal.ZonedDateTime | null;
|
|
128
146
|
/**
|
|
129
147
|
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
|
|
@@ -140,8 +158,7 @@ export declare class Zmanim {
|
|
|
140
158
|
private getShaahZmanisBasedZmanZdt;
|
|
141
159
|
/**
|
|
142
160
|
* Utility method for using elevation-aware sunrise/sunset
|
|
143
|
-
* @
|
|
144
|
-
* @param hours
|
|
161
|
+
* @param hours number of _shaos zmaniyos_ (solar hours) after sunrise
|
|
145
162
|
*/
|
|
146
163
|
private getShaahZmanisBasedZman;
|
|
147
164
|
/**
|
|
@@ -152,7 +169,7 @@ export declare class Zmanim {
|
|
|
152
169
|
/**
|
|
153
170
|
* Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.
|
|
154
171
|
*
|
|
155
|
-
* This method returns the latest *zman tfila* (time to recite
|
|
172
|
+
* This method returns the latest *zman tfila* (time to recite the morning prayers)
|
|
156
173
|
* that is 4 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise
|
|
157
174
|
* (depending on the `useElevation` setting), according
|
|
158
175
|
* to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
|
|
@@ -162,24 +179,29 @@ export declare class Zmanim {
|
|
|
162
179
|
sofZmanTfilla(): Date;
|
|
163
180
|
/**
|
|
164
181
|
* This method returns the latest time for burning _chametz_ on _Erev Pesach_ according to the opinion
|
|
165
|
-
* of the
|
|
166
|
-
* opinion of the
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* @return the
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* returned.
|
|
182
|
+
* of the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon). This time is 5 halachic hours into the day, based on
|
|
183
|
+
* the opinion of the GRA that the day is calculated from sunrise to sunset.
|
|
184
|
+
*
|
|
185
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
186
|
+
* @return the `Date` of the latest time for burning _chametz_ on _Erev Pesach_. If the calculation can't be
|
|
187
|
+
* computed, such as in the Arctic Circle where there is at least one day a year where the sun does not
|
|
188
|
+
* rise and one where it does not set, an `Invalid Date` will be returned.
|
|
173
189
|
*/
|
|
174
190
|
sofZmanBiurChametzGRA(): Date;
|
|
175
191
|
/**
|
|
176
|
-
* Returns
|
|
177
|
-
*
|
|
192
|
+
* Returns a 2-element array with alot (a `Date`, 72 minutes before sunrise)
|
|
193
|
+
* and the length in milliseconds of one halachic hour of the resulting day.
|
|
194
|
+
* Used internally by the Magen Avraham zmanim.
|
|
195
|
+
* @param forceSeaLevel ignore the `useElevation` setting and use sea-level
|
|
196
|
+
* sunrise and sunset
|
|
178
197
|
*/
|
|
179
198
|
getTemporalHour72(forceSeaLevel: boolean): [Date, number];
|
|
180
199
|
/**
|
|
181
|
-
* Returns
|
|
182
|
-
*
|
|
200
|
+
* Returns a 2-element array with alot (a `Date`, when the sun is `angle`
|
|
201
|
+
* degrees below the horizon in the morning) and the length in milliseconds
|
|
202
|
+
* of one halachic hour of the resulting day. Used internally by the
|
|
203
|
+
* degree-based Magen Avraham zmanim.
|
|
204
|
+
* @param angle degrees of solar depression below the horizon
|
|
183
205
|
*/
|
|
184
206
|
getTemporalHourByDeg(angle: number): [Date, number];
|
|
185
207
|
/**
|
|
@@ -229,7 +251,7 @@ export declare class Zmanim {
|
|
|
229
251
|
* Earliest Mincha – Mincha Gedola (GRA); Sunrise plus 6.5 halachic hours.
|
|
230
252
|
* If elevation is enabled, this function will include elevation in the calculation.
|
|
231
253
|
*
|
|
232
|
-
* This method returns
|
|
254
|
+
* This method returns *mincha gedola*, the earliest time one can pray mincha,
|
|
233
255
|
* that is 6.5 shaos zmaniyos (solar hours) after sunrise or sea level sunrise
|
|
234
256
|
* (depending on the `useElevation` setting), according
|
|
235
257
|
* to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
|
|
@@ -274,12 +296,22 @@ export declare class Zmanim {
|
|
|
274
296
|
*/
|
|
275
297
|
plagHaMincha(): Date;
|
|
276
298
|
/**
|
|
277
|
-
*
|
|
278
|
-
*
|
|
299
|
+
* Nightfall – Tzeit HaKochavim; the sun is `angle` degrees below the
|
|
300
|
+
* horizon in the evening.
|
|
301
|
+
*
|
|
279
302
|
* Because degree-based functions estimate the amount of light in the sky,
|
|
280
303
|
* the result is not impacted by elevation.
|
|
304
|
+
* @param [angle=8.5] optional time for solar depression.
|
|
305
|
+
* Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.
|
|
281
306
|
*/
|
|
282
307
|
tzeit(angle?: number): Date;
|
|
308
|
+
/**
|
|
309
|
+
* Nightfall – Tzeit HaKochavim; calculated as 72 minutes after sunset
|
|
310
|
+
* (or sea-level sunset, depending on the `useElevation` setting).
|
|
311
|
+
*
|
|
312
|
+
* Returns a `Temporal.ZonedDateTime` with seconds precision, or `null` if
|
|
313
|
+
* sunset cannot be calculated for this date and location.
|
|
314
|
+
*/
|
|
283
315
|
tzeit72(): Temporal.ZonedDateTime | null;
|
|
284
316
|
/**
|
|
285
317
|
* Alias for sunrise
|
|
@@ -330,12 +362,13 @@ export declare class Zmanim {
|
|
|
330
362
|
*/
|
|
331
363
|
private getMoladBasedTime;
|
|
332
364
|
/**
|
|
333
|
-
* Returns the latest time of Kiddush Levana according to the
|
|
334
|
-
*
|
|
365
|
+
* Returns the latest time of Kiddush Levana according to the
|
|
366
|
+
* [Maharil's](https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin) opinion that it is calculated as
|
|
335
367
|
* halfway between _molad_ and _molad_. This adds half the 29 days, 12 hours and 793 chalakim time between
|
|
336
368
|
* _molad_ and _molad_ (14 days, 18 hours, 22 minutes and 666 milliseconds) to the month's _molad_.
|
|
337
|
-
*
|
|
338
|
-
*
|
|
369
|
+
*
|
|
370
|
+
* The _sof zman Kiddush Levana_ will be returned even if it occurs during the day, unless both `alos` and
|
|
371
|
+
* `tzais` are supplied.
|
|
339
372
|
*
|
|
340
373
|
* @param alos
|
|
341
374
|
* the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and
|
|
@@ -345,32 +378,38 @@ export declare class Zmanim {
|
|
|
345
378
|
* the end of the Jewish day. If Kidush Levana occurs during the day (starting at alos and ending at
|
|
346
379
|
* tzais), the time returned will be alos. If either the alos or tzais parameters are null, no daytime
|
|
347
380
|
* adjustment will be made.
|
|
348
|
-
* @return the
|
|
349
|
-
* _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this
|
|
350
|
-
* day,
|
|
381
|
+
* @return the `Temporal.ZonedDateTime` representing the moment halfway between molad and molad. If the time
|
|
382
|
+
* occurs between _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this
|
|
383
|
+
* day, `null` will be returned.
|
|
351
384
|
*/
|
|
352
385
|
getSofZmanKidushLevanaBetweenMoldos(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
|
|
353
386
|
/**
|
|
354
387
|
* Returns the latest time of _Kiddush Levana_ calculated as 15 days after the molad. This is the opinion of
|
|
355
388
|
* the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that the
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
* {@link getSofZmanKidushLevanaBetweenMoldos half way between _molad_ and _molad_} is of
|
|
359
|
-
* the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on
|
|
360
|
-
*
|
|
361
|
-
* Zmanim
|
|
362
|
-
* between _tzais_ and _alos_, see {@link getSofZmanKidushLevana15Days}.
|
|
363
|
-
*
|
|
364
|
-
* @return the Date representing the moment 15 days after the _molad_. If the time occurs between
|
|
365
|
-
* _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day, a
|
|
366
|
-
* `null` will be returned.
|
|
389
|
+
* [Rema](https://en.wikipedia.org/wiki/Moses_Isserles), who brings down the opinion of the
|
|
390
|
+
* [Maharil](https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin) of calculating
|
|
391
|
+
* {@link getSofZmanKidushLevanaBetweenMoldos half way between _molad_ and _molad_}, is of
|
|
392
|
+
* the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on
|
|
393
|
+
* the subject, see Rabbi Dovid Heber's very detailed write-up in Siman Daled (chapter 4) of
|
|
394
|
+
* [Shaarei Zmanim](https://hebrewbooks.org/53000).
|
|
367
395
|
*
|
|
396
|
+
* The _sof zman Kiddush Levana_ will be returned even if it occurs during the day, unless both `alos` and
|
|
397
|
+
* `tzais` are supplied.
|
|
368
398
|
*
|
|
399
|
+
* @param alos
|
|
400
|
+
* the beginning of the Jewish day. If either the _alos_ or _tzais_ parameters are null, no daytime
|
|
401
|
+
* adjustment will be made.
|
|
402
|
+
* @param tzais
|
|
403
|
+
* the end of the Jewish day. If either the _alos_ or _tzais_ parameters are null, no daytime
|
|
404
|
+
* adjustment will be made.
|
|
405
|
+
* @return the `Temporal.ZonedDateTime` representing the moment 15 days after the _molad_. If the time occurs
|
|
406
|
+
* between _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day,
|
|
407
|
+
* `null` will be returned.
|
|
369
408
|
*/
|
|
370
409
|
getSofZmanKidushLevana15Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
|
|
371
410
|
/**
|
|
372
|
-
* Returns the earliest time of _Kiddush Levana_ according to
|
|
373
|
-
*
|
|
411
|
+
* Returns the earliest time of _Kiddush Levana_ according to
|
|
412
|
+
* [Rabbeinu Yonah](https://en.wikipedia.org/wiki/Yonah_Gerondi)'s opinion that it can be said 3 days after the _molad_.
|
|
374
413
|
* If the time of _tchilas zman Kiddush Levana_ occurs during the day (between _alos_ and _tzais_ passed to
|
|
375
414
|
* this method) it will return the following _tzais_. If null is passed for either _alos_ or _tzais_, the actual
|
|
376
415
|
* _tchilas zman Kiddush Levana_ will be returned, regardless of if it is during the day or not.
|
|
@@ -384,64 +423,66 @@ export declare class Zmanim {
|
|
|
384
423
|
* _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
|
|
385
424
|
* are null, no daytime adjustment will be made.
|
|
386
425
|
*
|
|
387
|
-
* @return the
|
|
388
|
-
* _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day,
|
|
426
|
+
* @return the `Temporal.ZonedDateTime` representing the moment 3 days after the molad. If the time occurs
|
|
427
|
+
* between _alos_ and _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day,
|
|
389
428
|
* `null` will be returned.
|
|
390
429
|
*/
|
|
391
430
|
getTchilasZmanKidushLevana3Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
|
|
392
431
|
/**
|
|
393
|
-
* Returns the point in time of _Molad_
|
|
394
|
-
* minute and chalakim, {@link Molad
|
|
395
|
-
* {@link HebrewDateFormatter} that will have formatting for this.
|
|
396
|
-
*
|
|
397
|
-
* @return the Date representing the moment of the molad. If the _molad_ does not occur on this day, a
|
|
398
|
-
* `null` will be returned.
|
|
432
|
+
* Returns the point in time of the _Molad_, if it occurs on this date. For the traditional day of week, hour,
|
|
433
|
+
* minute and chalakim, see {@link Molad} and its {@link Molad.render} method.
|
|
399
434
|
*
|
|
435
|
+
* @return the `Temporal.ZonedDateTime` representing the moment of the molad. If the _molad_ does not occur on
|
|
436
|
+
* this day, `null` will be returned.
|
|
400
437
|
*/
|
|
401
438
|
getZmanMolad(): Temporal.ZonedDateTime | null;
|
|
402
439
|
/**
|
|
403
440
|
* Returns the earliest time of _Kiddush Levana_ according to the opinions that it should not be said until 7
|
|
404
441
|
* days after the _molad_. The time will be returned even if it occurs during the day when _Kiddush Levana_
|
|
405
|
-
* can't be recited
|
|
442
|
+
* can't be recited, unless both `alos` and `tzais` are supplied.
|
|
406
443
|
*
|
|
407
|
-
* @
|
|
408
|
-
*
|
|
444
|
+
* @param alos
|
|
445
|
+
* the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and
|
|
446
|
+
* ending at _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
|
|
447
|
+
* are null, no daytime adjustment will be made.
|
|
448
|
+
* @param tzais
|
|
449
|
+
* the end of the Jewish day. If either the _alos_ or _tzais_ parameters are null, no daytime
|
|
450
|
+
* adjustment will be made.
|
|
451
|
+
* @return the `Temporal.ZonedDateTime` representing the moment 7 days after the molad. If the _zman_
|
|
452
|
+
* will not occur on this day, `null` will be returned.
|
|
409
453
|
*/
|
|
410
454
|
getTchilasZmanKidushLevana7Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
|
|
411
455
|
/**
|
|
412
|
-
* A method that returns the
|
|
456
|
+
* A method that returns the [Baal Hatanya](https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi)'s
|
|
413
457
|
* _netz amiti_ (sunrise) without
|
|
414
458
|
* elevation adjustment. This forms the base for the Baal Hatanya's dawn-based calculations that are
|
|
415
459
|
* calculated as a dip below the horizon before sunrise.
|
|
416
460
|
*
|
|
417
461
|
* According to the Baal Hatanya, _netz amiti_, or true (halachic) sunrise, is when the top of the sun's
|
|
418
462
|
* disk is visible at an elevation similar to the mountains of Eretz Yisrael. The time is calculated as the point at which
|
|
419
|
-
* the center of the sun's disk is 1.583
|
|
420
|
-
* DovBer Levine's commentary on
|
|
421
|
-
* Hatanya's Seder Hachnasas Shabbos
|
|
422
|
-
*
|
|
423
|
-
* below the sea level horizon. This in turn is based on the Gemara
|
|
424
|
-
*
|
|
463
|
+
* the center of the sun's disk is 1.583° below the horizon. This degree-based calculation can be found in Rabbi Shalom
|
|
464
|
+
* DovBer Levine's commentary on
|
|
465
|
+
* [The Baal Hatanya's Seder Hachnasas Shabbos](https://www.chabadlibrary.org/books/pdf/Seder-Hachnosas-Shabbos.pdf).
|
|
466
|
+
* From an elevation of 546 meters, the top of [Har Hacarmel](https://en.wikipedia.org/wiki/Mount_Carmel),
|
|
467
|
+
* the sun disappears when it is 1° 35' or 1.583° below the sea level horizon. This in turn is based on the Gemara
|
|
468
|
+
* [Shabbos 35a](https://hebrewbooks.org/shas.aspx?mesechta=2&daf=35). There are other opinions brought down by
|
|
425
469
|
* Rabbi Levine, including Rabbi Yosef Yitzchok Feigelstock who calculates it as the degrees below the horizon 4 minutes after
|
|
426
|
-
* sunset in Yerushalayim (on the equinox). That is brought down as 1.583
|
|
427
|
-
* and is probably a typo and should be 1.683
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* _Zmanim_ Calculations @ Chabad.org</a>.
|
|
470
|
+
* sunset in Yerushalayim (on the equinox). That is brought down as 1.583°. This is identical to the 1° 35' _zman_
|
|
471
|
+
* and is probably a typo and should be 1.683°. These calculations are used by most
|
|
472
|
+
* [Chabad](https://en.wikipedia.org/wiki/Chabad) calendars that use the Baal Hatanya's _zmanim_. See
|
|
473
|
+
* [About Our Zmanim Calculations @ Chabad.org](https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm).
|
|
431
474
|
*
|
|
432
475
|
* Note: _netz amiti_ is used only for calculating certain _zmanim_, and is intentionally unpublished. For
|
|
433
476
|
* practical purposes, daytime _mitzvos_ like _shofar_ and _lulav_ should not be done until after the
|
|
434
477
|
* published time for _netz_ / sunrise.
|
|
435
478
|
*
|
|
436
|
-
* @return the
|
|
437
|
-
* computed such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one
|
|
438
|
-
* where it does not set,
|
|
439
|
-
*
|
|
440
|
-
* @see ZENITH_1_POINT_583
|
|
479
|
+
* @return the exact sea level _netz amiti_ (sunrise) time. If the calculation can't be
|
|
480
|
+
* computed, such as in the Arctic Circle where there is at least one day a year where the sun does not rise, and one
|
|
481
|
+
* where it does not set, `null` will be returned.
|
|
441
482
|
*/
|
|
442
483
|
private getSunriseBaalHatanya;
|
|
443
484
|
/**
|
|
444
|
-
* A method that returns the
|
|
485
|
+
* A method that returns the [Baal Hatanya](https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi)'s
|
|
445
486
|
* _shkiah amiti_ (sunset) without
|
|
446
487
|
* elevation adjustment. This forms the base for the Baal Hatanya's dusk-based calculations that are calculated
|
|
447
488
|
* as a dip below the horizon after sunset.
|
|
@@ -454,110 +495,104 @@ export declare class Zmanim {
|
|
|
454
495
|
* practical purposes, all daytime mitzvos should be completed before the published time for _shkiah_ / sunset.
|
|
455
496
|
*
|
|
456
497
|
* For further explanation of the calculations used for the Baal Hatanya's _zmanim_ in this library, see
|
|
457
|
-
*
|
|
458
|
-
* _Zmanim_ Calculations @ Chabad.org</a>.
|
|
459
|
-
*
|
|
460
|
-
* @return the <code>Date</code> representing the exact sea level _shkiah amiti_ (sunset) time. If the calculation
|
|
461
|
-
* can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does not
|
|
462
|
-
* rise, and one where it does not set, a `null` will be returned.
|
|
498
|
+
* [About Our Zmanim Calculations @ Chabad.org](https://www.chabad.org/library/article_cdo/aid/3209349/jewish/About-Our-Zmanim-Calculations.htm).
|
|
463
499
|
*
|
|
464
|
-
* @
|
|
500
|
+
* @return the exact sea level _shkiah amiti_ (sunset) time. If the calculation
|
|
501
|
+
* can't be computed, such as in the Arctic Circle where there is at least one day a year where the sun does not
|
|
502
|
+
* rise, and one where it does not set, `null` will be returned.
|
|
465
503
|
*/
|
|
466
504
|
private getSunsetBaalHatanya;
|
|
467
505
|
/**
|
|
468
|
-
* Returns the
|
|
469
|
-
* (dawn) calculated as the time when the sun is 16.9
|
|
470
|
-
* before {@link
|
|
506
|
+
* Returns the [Baal Hatanya](https://en.wikipedia.org/wiki/Shneur_Zalman_of_Liadi)'s _alos_
|
|
507
|
+
* (dawn) calculated as the time when the sun is 16.9° below the eastern geometric horizon
|
|
508
|
+
* before {@link sunrise}.
|
|
471
509
|
*
|
|
472
|
-
* The zenith of 16.9
|
|
473
|
-
* and _netz amiti_ (sunrise) is 72 minutes, the time that
|
|
474
|
-
* a mil (
|
|
475
|
-
* minutes before
|
|
476
|
-
*
|
|
477
|
-
* 16.9
|
|
510
|
+
* The zenith of 16.9° below is based on the calculation that the time between dawn
|
|
511
|
+
* and _netz amiti_ (sunrise) is 72 minutes, the time that it takes to walk 4 mil at 18 minutes
|
|
512
|
+
* a mil ([Rambam](https://en.wikipedia.org/wiki/Maimonides) and others). The sun's position at 72
|
|
513
|
+
* minutes before _netz amiti_ (sunrise) in Jerusalem
|
|
514
|
+
* [around the equinox / equilux](https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/)
|
|
515
|
+
* is 16.9° below geometric zenith.
|
|
478
516
|
*
|
|
479
|
-
* @return
|
|
517
|
+
* @return the `Date` of dawn. If the calculation can't be computed, such as in northern and southern
|
|
480
518
|
* locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not reach
|
|
481
|
-
* low enough below the horizon for this calculation,
|
|
519
|
+
* low enough below the horizon for this calculation, an `Invalid Date` will be returned.
|
|
520
|
+
*/
|
|
482
521
|
alosBaalHatanya(): Date;
|
|
483
522
|
private getShaahZmanisBaalHatanya;
|
|
484
523
|
/**
|
|
485
524
|
* This method returns the latest _zman krias shema_ (time to recite Shema in the morning). This time is 3
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
* sunrise to sunset. This returns the time 3 * {@link getShaahZmanisBaalHatanya()} after {@link getSunriseBaalHatanya()
|
|
489
|
-
* _netz amiti_ (sunrise)}.
|
|
525
|
+
* _shaos zmaniyos_ (solar hours) after _netz amiti_ (sunrise), based on the opinion of the Baal Hatanya
|
|
526
|
+
* that the day is calculated from _netz amiti_ (sunrise) to _shkiah amiti_ (sunset).
|
|
490
527
|
*
|
|
491
|
-
* @return the
|
|
492
|
-
* can't be computed such as in the Arctic Circle where there is at least one day a year where the sun does
|
|
493
|
-
* not rise
|
|
528
|
+
* @return the `Date` of the latest _zman shema_ according to the Baal Hatanya. If the calculation
|
|
529
|
+
* can't be computed, such as in the Arctic Circle where there is at least one day a year where the sun does
|
|
530
|
+
* not rise and one where it does not set, an `Invalid Date` will be returned.
|
|
494
531
|
*/
|
|
495
532
|
sofZmanShmaBaalHatanya(): Date;
|
|
496
533
|
/**
|
|
497
534
|
* This method returns the latest _zman tfilah_ (time to recite the morning prayers). This time is 4
|
|
498
|
-
* hours into the day based on the opinion of the Baal Hatanya that the day is
|
|
499
|
-
* calculated from sunrise to
|
|
500
|
-
* {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.
|
|
535
|
+
* halachic hours into the day, based on the opinion of the Baal Hatanya that the day is
|
|
536
|
+
* calculated from _netz amiti_ (sunrise) to _shkiah amiti_ (sunset).
|
|
501
537
|
*
|
|
502
|
-
* @return the
|
|
503
|
-
* the Arctic Circle where there is at least one day a year where the sun does not rise
|
|
504
|
-
* not set,
|
|
538
|
+
* @return the `Date` of the latest _zman tfilah_. If the calculation can't be computed, such as in
|
|
539
|
+
* the Arctic Circle where there is at least one day a year where the sun does not rise and one where it does
|
|
540
|
+
* not set, an `Invalid Date` will be returned.
|
|
505
541
|
*/
|
|
506
542
|
sofZmanTfilaBaalHatanya(): Date;
|
|
507
543
|
/**
|
|
508
544
|
* This method returns the time of _mincha gedola_. _Mincha gedola_ is the earliest time one can pray
|
|
509
|
-
* _mincha_. The
|
|
510
|
-
* better to delay _mincha_ until {@link minchaKetanaBaalHatanya
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
* _lechatchila_ starting at _mincha gedola_. This is calculated as 6.5
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
* and one where it does not set, a `null` will be returned.
|
|
545
|
+
* _mincha_. The [Rambam](https://en.wikipedia.org/wiki/Maimonides) is of the opinion that it is
|
|
546
|
+
* better to delay _mincha_ until {@link minchaKetanaBaalHatanya | _mincha ketana_} while the
|
|
547
|
+
* [Ra"sh](https://en.wikipedia.org/wiki/Asher_ben_Jehiel),
|
|
548
|
+
* [Tur](https://en.wikipedia.org/wiki/Jacob_ben_Asher),
|
|
549
|
+
* [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon) and others are of the opinion that _mincha_ can be prayed
|
|
550
|
+
* _lechatchila_ starting at _mincha gedola_. This is calculated as 6.5 sea level solar hours after
|
|
551
|
+
* _netz amiti_ (sunrise), based on the opinion of the Baal Hatanya that the day is calculated from
|
|
552
|
+
* _netz amiti_ (sunrise) to _shkiah amiti_ (sunset).
|
|
553
|
+
* @return the `Date` of the time of _mincha gedola_ according to the Baal Hatanya. If the calculation
|
|
554
|
+
* 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
|
|
555
|
+
* and one where it does not set, an `Invalid Date` will be returned.
|
|
521
556
|
*/
|
|
522
557
|
minchaGedolaBaalHatanya(): Date;
|
|
523
558
|
/**
|
|
524
559
|
* This method returns the time of _mincha ketana_. This is the preferred earliest time to pray
|
|
525
|
-
* _mincha_ in the opinion of the
|
|
526
|
-
* For more information on this see the documentation on {@link minchaGedolaBaalHatanya
|
|
527
|
-
* This is calculated as 9.5 sea level solar hours after
|
|
528
|
-
*
|
|
529
|
-
* day is calculated from sunrise to sunset. This returns the time 9.5 * after
|
|
530
|
-
* _netz amiti_ (sunrise).
|
|
560
|
+
* _mincha_ in the opinion of the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others.
|
|
561
|
+
* For more information on this see the documentation on {@link minchaGedolaBaalHatanya | _mincha gedola_}.
|
|
562
|
+
* This is calculated as 9.5 sea level solar hours after _netz amiti_ (sunrise), based on the opinion of
|
|
563
|
+
* the Baal Hatanya that the day is calculated from _netz amiti_ (sunrise) to _shkiah amiti_ (sunset).
|
|
531
564
|
*
|
|
532
|
-
* @return the
|
|
533
|
-
* in the Arctic Circle where there is at least one day a year where the sun does not rise
|
|
534
|
-
* does not set,
|
|
565
|
+
* @return the `Date` of the time of _mincha ketana_. If the calculation can't be computed, such as
|
|
566
|
+
* in the Arctic Circle where there is at least one day a year where the sun does not rise and one where it
|
|
567
|
+
* does not set, an `Invalid Date` will be returned.
|
|
535
568
|
*/
|
|
536
569
|
minchaKetanaBaalHatanya(): Date;
|
|
537
570
|
/**
|
|
538
|
-
* This method returns the time of _plag hamincha_. This is calculated as 10.75
|
|
539
|
-
*
|
|
540
|
-
* from sunrise to
|
|
541
|
-
* {@link getSunriseBaalHatanya() _netz amiti_ (sunrise)}.
|
|
571
|
+
* This method returns the time of _plag hamincha_. This is calculated as 10.75 sea level solar hours
|
|
572
|
+
* after _netz amiti_ (sunrise), based on the opinion of the Baal Hatanya that the day is calculated
|
|
573
|
+
* from _netz amiti_ (sunrise) to _shkiah amiti_ (sunset).
|
|
542
574
|
*
|
|
543
|
-
* @return the
|
|
544
|
-
* in the Arctic Circle where there is at least one day a year where the sun does
|
|
545
|
-
* does not set,
|
|
575
|
+
* @return the `Date` of the time of _plag hamincha_ according to the Baal Hatanya. If the calculation
|
|
576
|
+
* can't be computed, such as in the Arctic Circle where there is at least one day a year where the sun does
|
|
577
|
+
* not rise and one where it does not set, an `Invalid Date` will be returned.
|
|
546
578
|
*/
|
|
547
579
|
plagHaminchaBaalHatanya(): Date;
|
|
548
580
|
/**
|
|
549
|
-
* A method that returns _tzais_ (nightfall) when the sun is 6
|
|
550
|
-
* (90
|
|
551
|
-
*
|
|
581
|
+
* A method that returns _tzais_ (nightfall) when the sun is 6° below the western geometric horizon
|
|
582
|
+
* (90°) after {@link sunset}. This is the time the Baal Hatanya calls _shkiah amiti_ plus the
|
|
583
|
+
* interval it takes the sun to descend a further 6°.
|
|
552
584
|
*
|
|
553
|
-
* @return
|
|
554
|
-
* locations even south of the Arctic Circle and north of the Antarctic Circle where the sun may not
|
|
555
|
-
* low enough below the horizon for this calculation,
|
|
585
|
+
* @return the `Date` of nightfall. If the calculation can't be computed, such as in northern and southern
|
|
586
|
+
* locations — even south of the Arctic Circle and north of the Antarctic Circle — where the sun may not
|
|
587
|
+
* reach low enough below the horizon for this calculation, an `Invalid Date` will be returned.
|
|
556
588
|
*/
|
|
557
589
|
tzaisBaalHatanya(): Date;
|
|
558
590
|
/**
|
|
559
591
|
* Uses timeFormat to return a date like '20:34'.
|
|
560
592
|
* Returns `XX:XX` if the date is invalid.
|
|
593
|
+
* @param dt the time to format
|
|
594
|
+
* @param timeFormat formatter to use, e.g. from
|
|
595
|
+
* {@link Location.getTimeFormatter}
|
|
561
596
|
*/
|
|
562
597
|
static formatTime(dt: Date, timeFormat: Intl.DateTimeFormat): string;
|
|
563
598
|
/**
|
|
@@ -606,7 +641,7 @@ export declare class Zmanim {
|
|
|
606
641
|
* (for example `2024-09-22T20:07`), this function would return a
|
|
607
642
|
* Hebrew date of `20th of Elul, 5784`.
|
|
608
643
|
* @example
|
|
609
|
-
*
|
|
644
|
+
* import {GeoLocation, Zmanim, HDate} from '@hebcal/core';
|
|
610
645
|
* const latitude = 48.85341;
|
|
611
646
|
* const longitude = 2.3488;
|
|
612
647
|
* const timezone = 'Europe/Paris';
|