@hebcal/core 5.3.10 → 5.3.11
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 +46 -16
- package/dist/bundle.js +91 -46
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +91 -46
- package/dist/index.mjs +91 -46
- package/hebcal.d.ts +77 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1998,6 +1998,7 @@ Enables or disables elevation adjustment for zmanim support elevation adjustment
|
|
|
1998
1998
|
### zmanim.timeAtAngle(angle, rising) ⇒ <code>Date</code>
|
|
1999
1999
|
Convenience function to get the time when sun is above or below the horizon
|
|
2000
2000
|
for a certain angle (in degrees).
|
|
2001
|
+
This function does not support elevation adjustment.
|
|
2001
2002
|
|
|
2002
2003
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2003
2004
|
|
|
@@ -2010,41 +2011,52 @@ for a certain angle (in degrees).
|
|
|
2010
2011
|
|
|
2011
2012
|
### zmanim.sunrise() ⇒ <code>Date</code>
|
|
2012
2013
|
Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
2014
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2013
2015
|
|
|
2014
2016
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2015
2017
|
<a name="Zmanim+seaLevelSunrise"></a>
|
|
2016
2018
|
|
|
2017
2019
|
### zmanim.seaLevelSunrise() ⇒ <code>Date</code>
|
|
2018
|
-
Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
2020
|
+
Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).
|
|
2021
|
+
This function does not support elevation adjustment.
|
|
2019
2022
|
|
|
2020
2023
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2021
2024
|
<a name="Zmanim+sunset"></a>
|
|
2022
2025
|
|
|
2023
2026
|
### zmanim.sunset() ⇒ <code>Date</code>
|
|
2024
|
-
When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
2027
|
+
When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
2028
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2025
2029
|
|
|
2026
2030
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2027
2031
|
<a name="Zmanim+seaLevelSunset"></a>
|
|
2028
2032
|
|
|
2029
2033
|
### zmanim.seaLevelSunset() ⇒ <code>Date</code>
|
|
2030
|
-
When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
2034
|
+
When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
2035
|
+
This function does not support elevation adjustment.
|
|
2031
2036
|
|
|
2032
2037
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2033
2038
|
<a name="Zmanim+dawn"></a>
|
|
2034
2039
|
|
|
2035
2040
|
### zmanim.dawn() ⇒ <code>Date</code>
|
|
2036
|
-
Civil dawn; Sun is 6° below the horizon in the morning
|
|
2041
|
+
Civil dawn; Sun is 6° below the horizon in the morning.
|
|
2042
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2043
|
+
the result is not impacted by elevation.
|
|
2037
2044
|
|
|
2038
2045
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2039
2046
|
<a name="Zmanim+dusk"></a>
|
|
2040
2047
|
|
|
2041
2048
|
### zmanim.dusk() ⇒ <code>Date</code>
|
|
2042
|
-
Civil dusk; Sun is 6° below the horizon in the evening
|
|
2049
|
+
Civil dusk; Sun is 6° below the horizon in the evening.
|
|
2050
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2051
|
+
the result is not impacted by elevation.
|
|
2043
2052
|
|
|
2044
2053
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2045
2054
|
<a name="Zmanim+gregEve"></a>
|
|
2046
2055
|
|
|
2047
2056
|
### zmanim.gregEve() ⇒ <code>Date</code>
|
|
2057
|
+
Returns sunset for the previous day.
|
|
2058
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2059
|
+
|
|
2048
2060
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2049
2061
|
<a name="Zmanim+chatzot"></a>
|
|
2050
2062
|
|
|
@@ -2055,37 +2067,46 @@ Midday – Chatzot; Sunrise plus 6 halachic hours
|
|
|
2055
2067
|
<a name="Zmanim+chatzotNight"></a>
|
|
2056
2068
|
|
|
2057
2069
|
### zmanim.chatzotNight() ⇒ <code>Date</code>
|
|
2058
|
-
Midnight – Chatzot; Sunset plus 6 halachic hours
|
|
2070
|
+
Midnight – Chatzot; Sunset plus 6 halachic hours.
|
|
2071
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2059
2072
|
|
|
2060
2073
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2061
2074
|
<a name="Zmanim+alotHaShachar"></a>
|
|
2062
2075
|
|
|
2063
2076
|
### zmanim.alotHaShachar() ⇒ <code>Date</code>
|
|
2064
|
-
Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning
|
|
2077
|
+
Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.
|
|
2078
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2079
|
+
the result is not impacted by elevation.
|
|
2065
2080
|
|
|
2066
2081
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2067
2082
|
<a name="Zmanim+misheyakir"></a>
|
|
2068
2083
|
|
|
2069
2084
|
### zmanim.misheyakir() ⇒ <code>Date</code>
|
|
2070
|
-
Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning
|
|
2085
|
+
Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
|
|
2086
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2087
|
+
the result is not impacted by elevation.
|
|
2071
2088
|
|
|
2072
2089
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2073
2090
|
<a name="Zmanim+misheyakirMachmir"></a>
|
|
2074
2091
|
|
|
2075
2092
|
### zmanim.misheyakirMachmir() ⇒ <code>Date</code>
|
|
2076
|
-
Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning
|
|
2093
|
+
Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.
|
|
2094
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2095
|
+
the result is not impacted by elevation.
|
|
2077
2096
|
|
|
2078
2097
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2079
2098
|
<a name="Zmanim+sofZmanShma"></a>
|
|
2080
2099
|
|
|
2081
2100
|
### zmanim.sofZmanShma() ⇒ <code>Date</code>
|
|
2082
|
-
Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra
|
|
2101
|
+
Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.
|
|
2102
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2083
2103
|
|
|
2084
2104
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2085
2105
|
<a name="Zmanim+sofZmanTfilla"></a>
|
|
2086
2106
|
|
|
2087
2107
|
### zmanim.sofZmanTfilla() ⇒ <code>Date</code>
|
|
2088
|
-
Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra
|
|
2108
|
+
Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.
|
|
2109
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2089
2110
|
|
|
2090
2111
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2091
2112
|
<a name="Zmanim+sofZmanShmaMGA"></a>
|
|
@@ -2146,19 +2167,22 @@ https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
|
2146
2167
|
<a name="Zmanim+minchaGedola"></a>
|
|
2147
2168
|
|
|
2148
2169
|
### zmanim.minchaGedola() ⇒ <code>Date</code>
|
|
2149
|
-
Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours
|
|
2170
|
+
Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours.
|
|
2171
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2150
2172
|
|
|
2151
2173
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2152
2174
|
<a name="Zmanim+minchaKetana"></a>
|
|
2153
2175
|
|
|
2154
2176
|
### zmanim.minchaKetana() ⇒ <code>Date</code>
|
|
2155
|
-
Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours
|
|
2177
|
+
Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.
|
|
2178
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2156
2179
|
|
|
2157
2180
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2158
2181
|
<a name="Zmanim+plagHaMincha"></a>
|
|
2159
2182
|
|
|
2160
2183
|
### zmanim.plagHaMincha() ⇒ <code>Date</code>
|
|
2161
|
-
Plag haMincha; Sunrise plus 10.75 halachic hours
|
|
2184
|
+
Plag haMincha; Sunrise plus 10.75 halachic hours.
|
|
2185
|
+
If elevation is enabled, this function will include elevation in the calculation.
|
|
2162
2186
|
|
|
2163
2187
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2164
2188
|
<a name="Zmanim+tzeit"></a>
|
|
@@ -2168,7 +2192,7 @@ Plag haMincha; Sunrise plus 10.75 halachic hours
|
|
|
2168
2192
|
|
|
2169
2193
|
| Param | Type | Default | Description |
|
|
2170
2194
|
| --- | --- | --- | --- |
|
|
2171
|
-
| [angle] | <code>number</code> | <code>8.5</code> | optional time for solar depression. Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars. |
|
|
2195
|
+
| [angle] | <code>number</code> | <code>8.5</code> | optional time for solar depression. Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars. Because degree-based functions estimate the amount of light in the sky, the result is not impacted by elevation. |
|
|
2172
2196
|
|
|
2173
2197
|
<a name="Zmanim+neitzHaChama"></a>
|
|
2174
2198
|
|
|
@@ -2188,13 +2212,17 @@ Alias for sunset
|
|
|
2188
2212
|
Rabbeinu Tam holds that bein hashmashos is a specific time
|
|
2189
2213
|
between sunset and tzeis hakochavim.
|
|
2190
2214
|
One opinion on how to calculate this time is that
|
|
2191
|
-
it is 13.5 minutes before tzies 7.083
|
|
2215
|
+
it is 13.5 minutes before tzies 7.083.
|
|
2216
|
+
Because degree-based functions estimate the amount of light in the sky,
|
|
2217
|
+
the result is not impacted by elevation.
|
|
2192
2218
|
|
|
2193
2219
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2194
2220
|
<a name="Zmanim+sunriseOffset"></a>
|
|
2195
2221
|
|
|
2196
2222
|
### zmanim.sunriseOffset(offset, roundMinute, forceSeaLevel) ⇒ <code>Date</code>
|
|
2197
2223
|
Returns sunrise + `offset` minutes (either positive or negative).
|
|
2224
|
+
If elevation is enabled, this function will include elevation in the calculation
|
|
2225
|
+
unless `forceSeaLevel` is `true`.
|
|
2198
2226
|
|
|
2199
2227
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2200
2228
|
|
|
@@ -2208,6 +2236,8 @@ Returns sunrise + `offset` minutes (either positive or negative).
|
|
|
2208
2236
|
|
|
2209
2237
|
### zmanim.sunsetOffset(offset, roundMinute, forceSeaLevel) ⇒ <code>Date</code>
|
|
2210
2238
|
Returns sunset + `offset` minutes (either positive or negative).
|
|
2239
|
+
If elevation is enabled, this function will include elevation in the calculation
|
|
2240
|
+
unless `forceSeaLevel` is `true`.
|
|
2211
2241
|
|
|
2212
2242
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
2213
2243
|
|
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.11 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -9125,14 +9125,6 @@ function pad4(number) {
|
|
|
9125
9125
|
return String(number);
|
|
9126
9126
|
}
|
|
9127
9127
|
|
|
9128
|
-
Object.defineProperties(globalThis, p({
|
|
9129
|
-
Temporal: mr
|
|
9130
|
-
})), Object.defineProperties(Intl, p({
|
|
9131
|
-
DateTimeFormat: Sr
|
|
9132
|
-
})), Object.defineProperties(Date.prototype, p({
|
|
9133
|
-
toTemporalInstant: toTemporalInstant
|
|
9134
|
-
}));
|
|
9135
|
-
|
|
9136
9128
|
/**
|
|
9137
9129
|
* @private
|
|
9138
9130
|
* @param {number} number
|
|
@@ -9145,6 +9137,24 @@ function pad2(number) {
|
|
|
9145
9137
|
return String(number);
|
|
9146
9138
|
}
|
|
9147
9139
|
|
|
9140
|
+
/**
|
|
9141
|
+
* Returns YYYY-MM-DD in the local timezone
|
|
9142
|
+
* @private
|
|
9143
|
+
* @param {Date} dt
|
|
9144
|
+
* @return {string}
|
|
9145
|
+
*/
|
|
9146
|
+
function isoDateString(dt) {
|
|
9147
|
+
return pad4(dt.getFullYear()) + '-' + pad2(dt.getMonth() + 1) + '-' + pad2(dt.getDate());
|
|
9148
|
+
}
|
|
9149
|
+
|
|
9150
|
+
Object.defineProperties(globalThis, p({
|
|
9151
|
+
Temporal: mr
|
|
9152
|
+
})), Object.defineProperties(Intl, p({
|
|
9153
|
+
DateTimeFormat: Sr
|
|
9154
|
+
})), Object.defineProperties(Date.prototype, p({
|
|
9155
|
+
toTemporalInstant: toTemporalInstant
|
|
9156
|
+
}));
|
|
9157
|
+
|
|
9148
9158
|
/**
|
|
9149
9159
|
* @private
|
|
9150
9160
|
* @param {Temporal.ZonedDateTime} zdt
|
|
@@ -9227,6 +9237,7 @@ class Zmanim {
|
|
|
9227
9237
|
/**
|
|
9228
9238
|
* Convenience function to get the time when sun is above or below the horizon
|
|
9229
9239
|
* for a certain angle (in degrees).
|
|
9240
|
+
* This function does not support elevation adjustment.
|
|
9230
9241
|
* @param {number} angle
|
|
9231
9242
|
* @param {boolean} rising
|
|
9232
9243
|
* @return {Date}
|
|
@@ -9238,6 +9249,7 @@ class Zmanim {
|
|
|
9238
9249
|
}
|
|
9239
9250
|
/**
|
|
9240
9251
|
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
9252
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9241
9253
|
* @return {Date}
|
|
9242
9254
|
*/
|
|
9243
9255
|
sunrise() {
|
|
@@ -9245,7 +9257,8 @@ class Zmanim {
|
|
|
9245
9257
|
return zdtToDate(zdt);
|
|
9246
9258
|
}
|
|
9247
9259
|
/**
|
|
9248
|
-
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
9260
|
+
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).
|
|
9261
|
+
* This function does not support elevation adjustment.
|
|
9249
9262
|
* @return {Date}
|
|
9250
9263
|
*/
|
|
9251
9264
|
seaLevelSunrise() {
|
|
@@ -9253,7 +9266,8 @@ class Zmanim {
|
|
|
9253
9266
|
return zdtToDate(zdt);
|
|
9254
9267
|
}
|
|
9255
9268
|
/**
|
|
9256
|
-
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
9269
|
+
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
9270
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9257
9271
|
* @return {Date}
|
|
9258
9272
|
*/
|
|
9259
9273
|
sunset() {
|
|
@@ -9261,7 +9275,8 @@ class Zmanim {
|
|
|
9261
9275
|
return zdtToDate(zdt);
|
|
9262
9276
|
}
|
|
9263
9277
|
/**
|
|
9264
|
-
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
9278
|
+
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
9279
|
+
* This function does not support elevation adjustment.
|
|
9265
9280
|
* @return {Date}
|
|
9266
9281
|
*/
|
|
9267
9282
|
seaLevelSunset() {
|
|
@@ -9269,7 +9284,9 @@ class Zmanim {
|
|
|
9269
9284
|
return zdtToDate(zdt);
|
|
9270
9285
|
}
|
|
9271
9286
|
/**
|
|
9272
|
-
* Civil dawn; Sun is 6° below the horizon in the morning
|
|
9287
|
+
* Civil dawn; Sun is 6° below the horizon in the morning.
|
|
9288
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9289
|
+
* the result is not impacted by elevation.
|
|
9273
9290
|
* @return {Date}
|
|
9274
9291
|
*/
|
|
9275
9292
|
dawn() {
|
|
@@ -9277,14 +9294,20 @@ class Zmanim {
|
|
|
9277
9294
|
return zdtToDate(zdt);
|
|
9278
9295
|
}
|
|
9279
9296
|
/**
|
|
9280
|
-
* Civil dusk; Sun is 6° below the horizon in the evening
|
|
9297
|
+
* Civil dusk; Sun is 6° below the horizon in the evening.
|
|
9298
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9299
|
+
* the result is not impacted by elevation.
|
|
9281
9300
|
* @return {Date}
|
|
9282
9301
|
*/
|
|
9283
9302
|
dusk() {
|
|
9284
9303
|
const zdt = this.noaa.getEndCivilTwilight();
|
|
9285
9304
|
return zdtToDate(zdt);
|
|
9286
9305
|
}
|
|
9287
|
-
/**
|
|
9306
|
+
/**
|
|
9307
|
+
* Returns sunset for the previous day.
|
|
9308
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9309
|
+
* @return {Date}
|
|
9310
|
+
*/
|
|
9288
9311
|
gregEve() {
|
|
9289
9312
|
const prev = new Date(this.date);
|
|
9290
9313
|
prev.setDate(prev.getDate() - 1);
|
|
@@ -9303,32 +9326,41 @@ class Zmanim {
|
|
|
9303
9326
|
* @return {Date}
|
|
9304
9327
|
*/
|
|
9305
9328
|
chatzot() {
|
|
9306
|
-
const
|
|
9329
|
+
const startOfDay = this.noaa.getSeaLevelSunrise();
|
|
9330
|
+
const endOfDay = this.noaa.getSeaLevelSunset();
|
|
9331
|
+
const zdt = this.noaa.getSunTransit(startOfDay, endOfDay);
|
|
9307
9332
|
return zdtToDate(zdt);
|
|
9308
9333
|
}
|
|
9309
9334
|
/**
|
|
9310
|
-
* Midnight – Chatzot; Sunset plus 6 halachic hours
|
|
9335
|
+
* Midnight – Chatzot; Sunset plus 6 halachic hours.
|
|
9336
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9311
9337
|
* @return {Date}
|
|
9312
9338
|
*/
|
|
9313
9339
|
chatzotNight() {
|
|
9314
9340
|
return new Date(this.sunrise().getTime() - this.nightHour() * 6);
|
|
9315
9341
|
}
|
|
9316
9342
|
/**
|
|
9317
|
-
* Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning
|
|
9343
|
+
* Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.
|
|
9344
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9345
|
+
* the result is not impacted by elevation.
|
|
9318
9346
|
* @return {Date}
|
|
9319
9347
|
*/
|
|
9320
9348
|
alotHaShachar() {
|
|
9321
9349
|
return this.timeAtAngle(16.1, true);
|
|
9322
9350
|
}
|
|
9323
9351
|
/**
|
|
9324
|
-
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning
|
|
9352
|
+
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
|
|
9353
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9354
|
+
* the result is not impacted by elevation.
|
|
9325
9355
|
* @return {Date}
|
|
9326
9356
|
*/
|
|
9327
9357
|
misheyakir() {
|
|
9328
9358
|
return this.timeAtAngle(11.5, true);
|
|
9329
9359
|
}
|
|
9330
9360
|
/**
|
|
9331
|
-
* Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning
|
|
9361
|
+
* Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.
|
|
9362
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9363
|
+
* the result is not impacted by elevation.
|
|
9332
9364
|
* @return {Date}
|
|
9333
9365
|
*/
|
|
9334
9366
|
misheyakirMachmir() {
|
|
@@ -9349,7 +9381,8 @@ class Zmanim {
|
|
|
9349
9381
|
return zdtToDate(zdt);
|
|
9350
9382
|
}
|
|
9351
9383
|
/**
|
|
9352
|
-
* Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra
|
|
9384
|
+
* Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.
|
|
9385
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9353
9386
|
* @return {Date}
|
|
9354
9387
|
*/
|
|
9355
9388
|
sofZmanShma() {
|
|
@@ -9357,7 +9390,8 @@ class Zmanim {
|
|
|
9357
9390
|
return this.getShaahZmanisBasedZman(3);
|
|
9358
9391
|
}
|
|
9359
9392
|
/**
|
|
9360
|
-
* Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra
|
|
9393
|
+
* Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.
|
|
9394
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9361
9395
|
* @return {Date}
|
|
9362
9396
|
*/
|
|
9363
9397
|
sofZmanTfilla() {
|
|
@@ -9457,21 +9491,24 @@ class Zmanim {
|
|
|
9457
9491
|
return new Date(alot.getTime() + 4 * temporalHour);
|
|
9458
9492
|
}
|
|
9459
9493
|
/**
|
|
9460
|
-
* Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours
|
|
9494
|
+
* Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours.
|
|
9495
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9461
9496
|
* @return {Date}
|
|
9462
9497
|
*/
|
|
9463
9498
|
minchaGedola() {
|
|
9464
9499
|
return this.getShaahZmanisBasedZman(6.5);
|
|
9465
9500
|
}
|
|
9466
9501
|
/**
|
|
9467
|
-
* Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours
|
|
9502
|
+
* Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.
|
|
9503
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9468
9504
|
* @return {Date}
|
|
9469
9505
|
*/
|
|
9470
9506
|
minchaKetana() {
|
|
9471
9507
|
return this.getShaahZmanisBasedZman(9.5);
|
|
9472
9508
|
}
|
|
9473
9509
|
/**
|
|
9474
|
-
* Plag haMincha; Sunrise plus 10.75 halachic hours
|
|
9510
|
+
* Plag haMincha; Sunrise plus 10.75 halachic hours.
|
|
9511
|
+
* If elevation is enabled, this function will include elevation in the calculation.
|
|
9475
9512
|
* @return {Date}
|
|
9476
9513
|
*/
|
|
9477
9514
|
plagHaMincha() {
|
|
@@ -9480,6 +9517,8 @@ class Zmanim {
|
|
|
9480
9517
|
/**
|
|
9481
9518
|
* @param {number} [angle=8.5] optional time for solar depression.
|
|
9482
9519
|
* Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.
|
|
9520
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9521
|
+
* the result is not impacted by elevation.
|
|
9483
9522
|
* @return {Date}
|
|
9484
9523
|
*/
|
|
9485
9524
|
tzeit() {
|
|
@@ -9504,7 +9543,9 @@ class Zmanim {
|
|
|
9504
9543
|
* Rabbeinu Tam holds that bein hashmashos is a specific time
|
|
9505
9544
|
* between sunset and tzeis hakochavim.
|
|
9506
9545
|
* One opinion on how to calculate this time is that
|
|
9507
|
-
* it is 13.5 minutes before tzies 7.083
|
|
9546
|
+
* it is 13.5 minutes before tzies 7.083.
|
|
9547
|
+
* Because degree-based functions estimate the amount of light in the sky,
|
|
9548
|
+
* the result is not impacted by elevation.
|
|
9508
9549
|
* @return {Date}
|
|
9509
9550
|
*/
|
|
9510
9551
|
beinHaShmashos() {
|
|
@@ -9580,6 +9621,8 @@ class Zmanim {
|
|
|
9580
9621
|
|
|
9581
9622
|
/**
|
|
9582
9623
|
* Returns sunrise + `offset` minutes (either positive or negative).
|
|
9624
|
+
* If elevation is enabled, this function will include elevation in the calculation
|
|
9625
|
+
* unless `forceSeaLevel` is `true`.
|
|
9583
9626
|
* @param {number} offset minutes
|
|
9584
9627
|
* @param {boolean} roundMinute round time to nearest minute (default true)
|
|
9585
9628
|
* @param {boolean} forceSeaLevel use sea-level sunrise (default false)
|
|
@@ -9604,6 +9647,8 @@ class Zmanim {
|
|
|
9604
9647
|
|
|
9605
9648
|
/**
|
|
9606
9649
|
* Returns sunset + `offset` minutes (either positive or negative).
|
|
9650
|
+
* If elevation is enabled, this function will include elevation in the calculation
|
|
9651
|
+
* unless `forceSeaLevel` is `true`.
|
|
9607
9652
|
* @param {number} offset minutes
|
|
9608
9653
|
* @param {boolean} roundMinute round time to nearest minute (default true)
|
|
9609
9654
|
* @param {boolean} forceSeaLevel use sea-level sunset (default false)
|
|
@@ -10847,8 +10892,7 @@ class ParshaEvent extends Event {
|
|
|
10847
10892
|
|
|
10848
10893
|
/** @return {string} */
|
|
10849
10894
|
urlDateSuffix() {
|
|
10850
|
-
const
|
|
10851
|
-
const isoDate = isoDateTime.substring(0, isoDateTime.indexOf('T'));
|
|
10895
|
+
const isoDate = isoDateString(this.getDate().greg());
|
|
10852
10896
|
return isoDate.replace(/-/g, '');
|
|
10853
10897
|
}
|
|
10854
10898
|
}
|
|
@@ -11666,22 +11710,24 @@ class HolidayEvent extends Event {
|
|
|
11666
11710
|
if (cats[0] !== 'unknown') {
|
|
11667
11711
|
return cats;
|
|
11668
11712
|
}
|
|
11713
|
+
// Don't depend on flags.MINOR_HOLIDAY always being set. Look for minor holidays.
|
|
11669
11714
|
const desc = this.getDesc();
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
}
|
|
11715
|
+
const {
|
|
11716
|
+
LAG_BAOMER,
|
|
11717
|
+
LEIL_SELICHOT,
|
|
11718
|
+
PESACH_SHENI,
|
|
11719
|
+
EREV_PURIM,
|
|
11720
|
+
PURIM_KATAN,
|
|
11721
|
+
SHUSHAN_PURIM,
|
|
11722
|
+
TU_BAV,
|
|
11723
|
+
TU_BISHVAT,
|
|
11724
|
+
ROSH_HASHANA_LABEHEMOT
|
|
11725
|
+
} = holidayDesc;
|
|
11726
|
+
const minorHolidays = [LAG_BAOMER, LEIL_SELICHOT, PESACH_SHENI, EREV_PURIM, PURIM_KATAN, SHUSHAN_PURIM, TU_BAV, TU_BISHVAT, ROSH_HASHANA_LABEHEMOT];
|
|
11727
|
+
if (minorHolidays.includes(desc)) {
|
|
11728
|
+
return ['holiday', 'minor'];
|
|
11729
|
+
}
|
|
11730
|
+
return ['holiday', 'major'];
|
|
11685
11731
|
}
|
|
11686
11732
|
/**
|
|
11687
11733
|
* Returns (translated) description of this event
|
|
@@ -11744,8 +11790,7 @@ class RoshChodeshEvent extends HolidayEvent {
|
|
|
11744
11790
|
class AsaraBTevetEvent extends HolidayEvent {
|
|
11745
11791
|
/** @return {string} */
|
|
11746
11792
|
urlDateSuffix() {
|
|
11747
|
-
const
|
|
11748
|
-
const isoDate = isoDateTime.substring(0, isoDateTime.indexOf('T'));
|
|
11793
|
+
const isoDate = isoDateString(this.getDate().greg());
|
|
11749
11794
|
return isoDate.replace(/-/g, '');
|
|
11750
11795
|
}
|
|
11751
11796
|
}
|
|
@@ -12136,7 +12181,7 @@ class DailyLearning {
|
|
|
12136
12181
|
}
|
|
12137
12182
|
|
|
12138
12183
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
12139
|
-
const version = '5.3.
|
|
12184
|
+
const version = '5.3.11';
|
|
12140
12185
|
|
|
12141
12186
|
const NONE$1 = 0;
|
|
12142
12187
|
const HALF = 1;
|