@hebcal/core 6.1.0 → 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.
Files changed (88) hide show
  1. package/dist/bundle.js +203 -18
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +5 -5
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  9. package/dist/esm/ParshaEvent.js +1 -1
  10. package/dist/esm/TimedEvent.js +1 -1
  11. package/dist/esm/YomKippurKatanEvent.js +1 -1
  12. package/dist/esm/ashkenazi.po.js +1 -1
  13. package/dist/esm/calendar.js +1 -1
  14. package/dist/esm/candles.js +1 -1
  15. package/dist/esm/event.js +1 -1
  16. package/dist/esm/getStartAndEnd.js +1 -1
  17. package/dist/esm/hallel.js +1 -1
  18. package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
  19. package/dist/esm/he-x-NoNikud.po.js +2 -2
  20. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  21. package/dist/esm/he.po.js +2 -2
  22. package/dist/esm/he.po.js.map +1 -1
  23. package/dist/esm/hebcal.js +1 -1
  24. package/dist/esm/holidays.js +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/isAssurBemlacha.js +1 -1
  27. package/dist/esm/locale.js +1 -1
  28. package/dist/esm/location.js +1 -1
  29. package/dist/esm/modern.js +1 -1
  30. package/dist/esm/molad.js +1 -1
  31. package/dist/esm/moladBase.js +1 -1
  32. package/dist/esm/moladDate.js +1 -1
  33. package/dist/esm/omer.js +1 -1
  34. package/dist/esm/parshaName.js +1 -1
  35. package/dist/esm/parshaYear.js +1 -1
  36. package/dist/esm/pkgVersion.d.ts +1 -1
  37. package/dist/esm/pkgVersion.js +2 -2
  38. package/dist/esm/pkgVersion.js.map +1 -1
  39. package/dist/esm/reformatTimeStr.js +1 -1
  40. package/dist/esm/sedra.js +1 -1
  41. package/dist/esm/staticHolidays.js +1 -1
  42. package/dist/esm/tachanun.js +1 -1
  43. package/dist/esm/zmanim.d.ts +159 -11
  44. package/dist/esm/zmanim.js +200 -15
  45. package/dist/esm/zmanim.js.map +1 -1
  46. package/dist/src/he-x-NoNikud.po.d.ts +2 -0
  47. package/dist/src/he-x-NoNikud.po.js +1 -1
  48. package/dist/src/he.po.js +1 -1
  49. package/dist/src/pkgVersion.d.ts +1 -1
  50. package/dist/src/pkgVersion.js +1 -1
  51. package/dist/src/zmanim.d.ts +159 -11
  52. package/dist/src/zmanim.js +199 -14
  53. package/package.json +1 -1
  54. package/dist/CalOptions.d.ts +0 -168
  55. package/dist/DailyLearning.d.ts +0 -32
  56. package/dist/HebrewDateEvent.d.ts +0 -37
  57. package/dist/HolidayEvent.d.ts +0 -84
  58. package/dist/MevarchimChodeshEvent.d.ts +0 -26
  59. package/dist/ParshaEvent.d.ts +0 -19
  60. package/dist/TimedEvent.d.ts +0 -47
  61. package/dist/YomKippurKatanEvent.d.ts +0 -23
  62. package/dist/ashkenazi.po.d.ts +0 -82
  63. package/dist/calendar.d.ts +0 -111
  64. package/dist/candles.d.ts +0 -44
  65. package/dist/event.d.ts +0 -188
  66. package/dist/getStartAndEnd.d.ts +0 -6
  67. package/dist/hallel.d.ts +0 -6
  68. package/dist/he-x-NoNikud.po.d.ts +0 -16
  69. package/dist/he.po.d.ts +0 -215
  70. package/dist/hebcal.d.ts +0 -260
  71. package/dist/holidays.d.ts +0 -22
  72. package/dist/index.d.ts +0 -28
  73. package/dist/isAssurBemlacha.d.ts +0 -9
  74. package/dist/locale.d.ts +0 -1
  75. package/dist/location.d.ts +0 -73
  76. package/dist/modern.d.ts +0 -18
  77. package/dist/molad.d.ts +0 -132
  78. package/dist/moladBase.d.ts +0 -15
  79. package/dist/moladDate.d.ts +0 -12
  80. package/dist/omer.d.ts +0 -52
  81. package/dist/parshaName.d.ts +0 -2
  82. package/dist/parshaYear.d.ts +0 -9
  83. package/dist/pkgVersion.d.ts +0 -2
  84. package/dist/reformatTimeStr.d.ts +0 -8
  85. package/dist/sedra.d.ts +0 -95
  86. package/dist/staticHolidays.d.ts +0 -176
  87. package/dist/tachanun.d.ts +0 -29
  88. package/dist/zmanim.d.ts +0 -460
package/dist/zmanim.d.ts DELETED
@@ -1,460 +0,0 @@
1
- import 'temporal-polyfill/global';
2
- import { GeoLocation } from '@hebcal/noaa';
3
- import { HDate } from '@hebcal/hdate';
4
- /**
5
- * Calculate halachic times (zmanim / זְמַנִּים) for a given day and location.
6
- * Calculations are available for tzeit / tzais (nightfall),
7
- * shkiah (sunset) and more.
8
- *
9
- * Zmanim are estimated using an algorithm published by the US National Oceanic
10
- * and Atmospheric Administration. The NOAA solar calculator is based on equations
11
- * from _Astronomical Algorithms_ by Jean Meeus.
12
- *
13
- * The sunrise and sunset results are theoretically accurate to within a minute for
14
- * locations between +/- 72° latitude, and within 10 minutes outside of those latitudes.
15
- * However, due to variations in atmospheric composition, temperature, pressure and
16
- * conditions, observed values may vary from calculations.
17
- * https://gml.noaa.gov/grad/solcalc/calcdetails.html
18
- *
19
- * @example
20
- * const {GeoLocation, Zmanim} = require('@hebcal/core');
21
- * const latitude = 41.822232;
22
- * const longitude = -71.448292;
23
- * const tzid = 'America/New_York';
24
- * const friday = new Date(2023, 8, 8);
25
- * const gloc = new GeoLocation(null, latitude, longitude, 0, tzid);
26
- * const zmanim = new Zmanim(gloc, friday, false);
27
- * const candleLighting = zmanim.sunsetOffset(-18, true);
28
- * const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);
29
- */
30
- export declare class Zmanim {
31
- private readonly plainDate;
32
- private readonly gloc;
33
- private readonly noaa;
34
- private useElevation;
35
- /**
36
- * Initialize a Zmanim instance.
37
- * @param gloc GeoLocation including latitude, longitude, and timezone
38
- * @param date Regular or Hebrew Date. If `date` is a regular `Date`,
39
- * hours, minutes, seconds and milliseconds are ignored.
40
- * @param useElevation use elevation for calculations (default `false`).
41
- * If `true`, use elevation to affect the calculation of all sunrise/sunset based
42
- * zmanim. Note: there are some zmanim such as degree-based zmanim that are driven
43
- * by the amount of light in the sky and are not impacted by elevation.
44
- * These zmanim intentionally do not support elevation adjustment.
45
- */
46
- constructor(gloc: GeoLocation, date: Date | HDate, useElevation: boolean);
47
- /**
48
- * Returns `true` if elevation adjustment is enabled
49
- * for zmanim support elevation adjustment
50
- */
51
- getUseElevation(): boolean;
52
- /**
53
- * Enables or disables elevation adjustment for zmanim support elevation adjustment
54
- * @param useElevation
55
- */
56
- setUseElevation(useElevation: boolean): void;
57
- /**
58
- * Convenience function to get the time when sun is above or below the horizon
59
- * for a certain angle (in degrees).
60
- * This function does not support elevation adjustment.
61
- * @param angle
62
- * @param rising
63
- */
64
- timeAtAngle(angle: number, rising: boolean): Date;
65
- /**
66
- * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
67
- * If elevation is enabled, this function will include elevation in the calculation.
68
- */
69
- sunrise(): Date;
70
- /**
71
- * Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).
72
- * This function does not support elevation adjustment.
73
- */
74
- seaLevelSunrise(): Date;
75
- /**
76
- * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
77
- * If elevation is enabled, this function will include elevation in the calculation.
78
- */
79
- sunset(): Date;
80
- /**
81
- * When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
82
- * This function does not support elevation adjustment.
83
- */
84
- seaLevelSunset(): Date;
85
- /**
86
- * Civil dawn; Sun is 6° below the horizon in the morning.
87
- * Because degree-based functions estimate the amount of light in the sky,
88
- * the result is not impacted by elevation.
89
- */
90
- dawn(): Date;
91
- /**
92
- * Civil dusk; Sun is 6° below the horizon in the evening.
93
- * Because degree-based functions estimate the amount of light in the sky,
94
- * the result is not impacted by elevation.
95
- */
96
- dusk(): Date;
97
- /**
98
- * Returns sunset for the previous day.
99
- * If elevation is enabled, this function will include elevation in the calculation.
100
- */
101
- gregEve(): Date;
102
- /**
103
- * @private
104
- */
105
- nightHour(): number;
106
- /**
107
- * Midday – Chatzot; Sunrise plus 6 halachic hours
108
- */
109
- chatzot(): Date;
110
- /**
111
- * Midnight – Chatzot; Sunset plus 6 halachic hours.
112
- * If elevation is enabled, this function will include elevation in the calculation.
113
- */
114
- chatzotNight(): Date;
115
- /**
116
- * Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.
117
- * Because degree-based functions estimate the amount of light in the sky,
118
- * the result is not impacted by elevation.
119
- */
120
- alotHaShachar(): Date;
121
- /**
122
- * Dawn – Alot haShachar; calculated as 72 minutes before sunrise or
123
- * sea level sunrise.
124
- */
125
- alotHaShachar72(): Date;
126
- alotHaShachar72zdt(): Temporal.ZonedDateTime | null;
127
- /**
128
- * Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
129
- * Because degree-based functions estimate the amount of light in the sky,
130
- * the result is not impacted by elevation.
131
- */
132
- misheyakir(): Date;
133
- /**
134
- * Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.
135
- * Because degree-based functions estimate the amount of light in the sky,
136
- * the result is not impacted by elevation.
137
- */
138
- misheyakirMachmir(): Date;
139
- /**
140
- * Utility method for using elevation-aware sunrise/sunset
141
- * @private
142
- * @param hours
143
- */
144
- getShaahZmanisBasedZman(hours: number): Date;
145
- /**
146
- * Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.
147
- * If elevation is enabled, this function will include elevation in the calculation.
148
- */
149
- sofZmanShma(): Date;
150
- /**
151
- * Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.
152
- *
153
- * This method returns the latest *zman tfila* (time to recite shema in the morning)
154
- * that is 4 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise
155
- * (depending on the `useElevation` setting), according
156
- * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
157
- *
158
- * If elevation is enabled, this function will include elevation in the calculation.
159
- */
160
- sofZmanTfilla(): Date;
161
- /**
162
- * Returns an array with alot (Date) and ms in hour (number)
163
- * @private
164
- */
165
- getTemporalHour72(forceSeaLevel: boolean): [Date, number];
166
- /**
167
- * Returns an array with alot (Date) and ms in hour (number)
168
- * @private
169
- */
170
- getTemporalHourByDeg(angle: number): [Date, number];
171
- /**
172
- * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
173
- * Based on the opinion of the MGA that the day is calculated from
174
- * dawn being fixed 72 minutes before sea-level sunrise, and nightfall is fixed
175
- * 72 minutes after sea-level sunset.
176
- */
177
- sofZmanShmaMGA(): Date;
178
- /**
179
- * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
180
- * Based on the opinion of the MGA that the day is calculated from
181
- * dawn to nightfall with both being 16.1° below the horizon.
182
- */
183
- sofZmanShmaMGA16Point1(): Date;
184
- /**
185
- * Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
186
- * Based on the opinion of the MGA that the day is calculated from
187
- * dawn to nightfall with both being 19.8° below the horizon.
188
- *
189
- * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
190
- * around the equinox / equilux which calculates to 19.8° below geometric zenith.
191
- * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
192
- */
193
- sofZmanShmaMGA19Point8(): Date;
194
- /**
195
- * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham
196
- */
197
- sofZmanTfillaMGA(): Date;
198
- /**
199
- * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
200
- * Based on the opinion of the MGA that the day is calculated from
201
- * dawn to nightfall with both being 16.1° below the horizon.
202
- */
203
- sofZmanTfillaMGA16Point1(): Date;
204
- /**
205
- * Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
206
- * Based on the opinion of the MGA that the day is calculated from
207
- * dawn to nightfall with both being 19.8° below the horizon.
208
- *
209
- * This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
210
- * around the equinox / equilux which calculates to 19.8° below geometric zenith.
211
- * https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
212
- */
213
- sofZmanTfillaMGA19Point8(): Date;
214
- /**
215
- * Earliest Mincha – Mincha Gedola (GRA); Sunrise plus 6.5 halachic hours.
216
- * If elevation is enabled, this function will include elevation in the calculation.
217
- *
218
- * This method returns the latest mincha gedola, the earliest time one can pray mincha
219
- * that is 6.5 shaos zmaniyos (solar hours) after sunrise or sea level sunrise
220
- * (depending on the `useElevation` setting), according
221
- * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
222
- *
223
- * The Ramba"m is of the opinion that it is better to delay *mincha* until
224
- * *mincha ketana* while the Ra"sh, Tur, GRA and others are of the
225
- * opinion that *mincha* can be prayed *lechatchila* starting at *mincha gedola*.
226
- */
227
- minchaGedola(): Date;
228
- /**
229
- * Earliest Mincha – Mincha Gedola (MGA); Sunrise plus 6.5 halachic hours.
230
- * If elevation is enabled, this function will include elevation in the calculation.
231
- *
232
- * This method returns the time of *mincha gedola* according to the Magen Avraham
233
- * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.
234
- * This is the earliest time to pray *mincha*.
235
- */
236
- minchaGedolaMGA(): Date;
237
- /**
238
- * Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.
239
- * If elevation is enabled, this function will include elevation in the calculation.
240
- *
241
- * This method returns *mincha ketana*, the preferred earliest time to pray *mincha* in the
242
- * opinion of the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others,
243
- * that is 9.5 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise
244
- * (depending on the `useElevation` setting), according
245
- * to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
246
- */
247
- minchaKetana(): Date;
248
- /**
249
- * This method returns the time of *mincha ketana* according to the Magen Avraham
250
- * with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.
251
- * This is the preferred earliest time to pray *mincha* according to the opinion of
252
- * the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others.
253
- *
254
- * If elevation is enabled, this function will include elevation in the calculation.
255
- */
256
- minchaKetanaMGA(): Date;
257
- /**
258
- * Plag haMincha; Sunrise plus 10.75 halachic hours.
259
- * If elevation is enabled, this function will include elevation in the calculation.
260
- */
261
- plagHaMincha(): Date;
262
- /**
263
- * @param [angle=8.5] optional time for solar depression.
264
- * Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.
265
- * Because degree-based functions estimate the amount of light in the sky,
266
- * the result is not impacted by elevation.
267
- */
268
- tzeit(angle?: number): Date;
269
- tzeit72(): Temporal.ZonedDateTime | null;
270
- /**
271
- * Alias for sunrise
272
- */
273
- neitzHaChama(): Date;
274
- /**
275
- * Alias for sunset
276
- */
277
- shkiah(): Date;
278
- /**
279
- * Rabbeinu Tam holds that bein hashmashos is a specific time
280
- * between sunset and tzeis hakochavim.
281
- * One opinion on how to calculate this time is that
282
- * it is 13.5 minutes before tzies 7.083.
283
- * Because degree-based functions estimate the amount of light in the sky,
284
- * the result is not impacted by elevation.
285
- */
286
- beinHaShmashos(): Date;
287
- /**
288
- * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.
289
- * @return previous midnight
290
- */
291
- private getMidnightLastNight;
292
- /**
293
- * Used by Molad based _zmanim_ to determine if _zmanim_ occur during the current day.
294
- * @return following midnight
295
- */
296
- private getMidnightTonight;
297
- /**
298
- * Returns the Date of the _molad_ based time if it occurs on the current date. Since _Kiddush Levana_
299
- * can only be said during the day, there are parameters to limit it to between _alos_ and _tzais_. If
300
- * the time occurs between _alos_ and _tzais_, _tzais_ will be returned.
301
- *
302
- * @param moladBasedTime
303
- * the _molad_ based time such as _molad_, _tchilas_ and _sof zman Kiddush Levana_
304
- * @param alos
305
- * optional start of day to limit _molad_ times to the end of the night before or beginning of the next night.
306
- * Ignored if either _alos_ or _tzais_ are null.
307
- * @param tzais
308
- * optional end of day to limit _molad_ times to the end of the night before or beginning of the next night.
309
- * Ignored if either _tzais_ or _alos_ are null
310
- * @param techila
311
- * is it the start of _Kiddush Levana_ time or the end? If it is start roll it to the next _tzais_,
312
- * and if it is the end, return the end of the previous night (_alos_ passed in). Ignored if either
313
- * _alos_ or _tzais_ are null.
314
- * @return the _molad_ based time. If the _zman_ does not occur during the current date, <code>null</code> will be
315
- * returned.
316
- */
317
- private getMoladBasedTime;
318
- private getHDate;
319
- /**
320
- * Returns the latest time of Kiddush Levana according to the <a
321
- * href="https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin">Maharil's</a> opinion that it is calculated as
322
- * halfway between _molad_ and _molad_. This adds half the 29 days, 12 hours and 793 chalakim time between
323
- * _molad_ and _molad_ (14 days, 18 hours, 22 minutes and 666 milliseconds) to the month's _molad_.
324
- * The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to between
325
- * _tzais_ and _alos_, see {@link #getSofZmanKidushLevanaBetweenMoldos(Date, Date)}.
326
- *
327
- * @param alos
328
- * the beginning of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and
329
- * ending at _tzais_), the time returned will be alos. If either the _alos_ or _tzais_ parameters
330
- * are null, no daytime adjustment will be made.
331
- * @param tzais
332
- * the end of the Jewish day. If Kidush Levana occurs during the day (starting at alos and ending at
333
- * tzais), the time returned will be alos. If either the alos or tzais parameters are null, no daytime
334
- * adjustment will be made.
335
- * @return the Date representing the moment halfway between molad and molad. If the time occurs between
336
- * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this
337
- * day, a <code>null</code> will be returned.
338
- */
339
- getSofZmanKidushLevanaBetweenMoldos(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
340
- /**
341
- * Returns the latest time of _Kiddush Levana_ calculated as 15 days after the molad. This is the opinion of
342
- * the Shulchan Aruch (Orach Chaim 426). It should be noted that some opinions hold that the
343
- * <a href="https://en.wikipedia.org/wiki/Moses_Isserles">Rema</a> who brings down the opinion of the <a
344
- * href="https://en.wikipedia.org/wiki/Yaakov_ben_Moshe_Levi_Moelin">Maharil's</a> of calculating
345
- * {@link #getSofZmanKidushLevanaBetweenMoldos(Date, Date) half way between _molad_ and _molad_} is of
346
- * the opinion that the Mechaber agrees to his opinion. Also see the Aruch Hashulchan. For additional details on the subject,
347
- * See Rabbi Dovid Heber's very detailed write-up in Siman Daled (chapter 4) of <a href="https://hebrewbooks.org/53000">Shaarei
348
- * Zmanim</a>. The _sof zman Kiddush Levana_ will be returned even if it occurs during the day. To limit the time to
349
- * between _tzais_ and _alos_, see {@link #getSofZmanKidushLevana15Days(Date, Date)}.
350
- *
351
- * @return the Date representing the moment 15 days after the _molad_. If the time occurs between
352
- * _alos_ and _tzais_, _alos_ will be returned. If the _zman_ will not occur on this day, a
353
- * <code>null</code> will be returned.
354
- *
355
- *
356
- */
357
- getSofZmanKidushLevana15Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
358
- /**
359
- * Returns the earliest time of _Kiddush Levana_ according to <a href=
360
- * "https://en.wikipedia.org/wiki/Yonah_Gerondi">Rabbeinu Yonah</a>'s opinion that it can be said 3 days after the _molad_.
361
- * If the time of _tchilas zman Kiddush Levana_ occurs during the day (between _alos_ and _tzais_ passed to
362
- * this method) it will return the following _tzais_. If null is passed for either _alos_ or _tzais_, the actual
363
- * _tchilas zman Kiddush Levana_ will be returned, regardless of if it is during the day or not.
364
- *
365
- * @param alos
366
- * the beginning of the Jewish day. If Kidush Levana occurs during the day (starting at _alos_ and ending
367
- * at _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
368
- * are null, no daytime adjustment will be made.
369
- * @param tzais
370
- * the end of the Jewish day. If _Kidush Levana_ occurs during the day (starting at _alos_ and ending at
371
- * _tzais_), the time returned will be _tzais_. If either the _alos_ or _tzais_ parameters
372
- * are null, no daytime adjustment will be made.
373
- *
374
- * @return the Date representing the moment 3 days after the molad. If the time occurs between _alos_ and
375
- * _tzais_, _tzais_ will be returned. If the _zman_ will not occur on this day, a
376
- * <code>null</code> will be returned.
377
- */
378
- getTchilasZmanKidushLevana3Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
379
- /**
380
- * Returns the point in time of _Molad_ as a <code>Date</code> Object. For the traditional day of week, hour,
381
- * minute and chalakim, {@link Molad.getInstant()} and the not yet completed
382
- * {@link HebrewDateFormatter} that will have formatting for this.
383
- *
384
- * @return the Date representing the moment of the molad. If the _molad_ does not occur on this day, a
385
- * <code>null</code> will be returned.
386
- *
387
- */
388
- getZmanMolad(): Temporal.ZonedDateTime | null;
389
- /**
390
- * Returns the earliest time of _Kiddush Levana_ according to the opinions that it should not be said until 7
391
- * days after the _molad_. The time will be returned even if it occurs during the day when _Kiddush Levana_
392
- * can't be recited. Use {@link #getTchilasZmanKidushLevana7Days(Date, Date)} if you want to limit the time to night hours.
393
- *
394
- * @return the Date representing the moment 7 days after the molad regardless of it is day or night. If the _zman_
395
- * will not occur on this day, a <code>null</code> will be returned.
396
- */
397
- getTchilasZmanKidushLevana7Days(alos?: Temporal.ZonedDateTime | null, tzais?: Temporal.ZonedDateTime | null): Temporal.ZonedDateTime | null;
398
- /**
399
- * Uses timeFormat to return a date like '20:34'.
400
- * Returns `XX:XX` if the date is invalid.
401
- */
402
- static formatTime(dt: Date, timeFormat: Intl.DateTimeFormat): string;
403
- /**
404
- * Discards seconds, rounding to nearest minute.
405
- * @param dt
406
- */
407
- static roundTime(dt: Date): Date;
408
- /**
409
- * Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
410
- * @param tzid
411
- * @param date
412
- */
413
- static timeZoneOffset(tzid: string, date: Date): string;
414
- /**
415
- * Returns a string like "2022-04-01T13:06:00-11:00"
416
- * @param tzid
417
- * @param date
418
- */
419
- static formatISOWithTimeZone(tzid: string, date: Date): string;
420
- /**
421
- * Returns sunrise + `offset` minutes (either positive or negative).
422
- * If elevation is enabled, this function will include elevation in the calculation
423
- * unless `forceSeaLevel` is `true`.
424
- * @param offset minutes
425
- * @param roundMinute round time to nearest minute (default true)
426
- * @param forceSeaLevel use sea-level sunrise (default false)
427
- */
428
- sunriseOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
429
- /**
430
- * Returns sunset + `offset` minutes (either positive or negative).
431
- * If elevation is enabled, this function will include elevation in the calculation
432
- * unless `forceSeaLevel` is `true`.
433
- * @param offset minutes
434
- * @param roundMinute round time to nearest minute (default true)
435
- * @param forceSeaLevel use sea-level sunset (default false)
436
- */
437
- sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
438
- /**
439
- * Returns the Hebrew date relative to the specified location and Gregorian date,
440
- * taking into consideration whether the time is before or after sunset.
441
- *
442
- * For example, if the given date and is `2024-09-22T10:35` (before sunset), and
443
- * sunset for the specified location is **19:04**, then this function would
444
- * return a Hebrew date of `19th of Elul, 5784`.
445
- * If the given date is the same Gregorian day after sunset
446
- * (for example `2024-09-22T20:07`), this function would return a
447
- * Hebrew date of `20th of Elul, 5784`.
448
- * @example
449
- * const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');
450
- * const latitude = 48.85341;
451
- * const longitude = 2.3488;
452
- * const timezone = 'Europe/Paris';
453
- * const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);
454
- * const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);
455
- * console.log(before.toString()); // '19 Elul 5784'
456
- * const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);
457
- * console.log(after.toString()); // '20 Elul 5784'
458
- */
459
- static makeSunsetAwareHDate(gloc: GeoLocation, date: Date, useElevation: boolean): HDate;
460
- }