@hebcal/core 3.33.7 → 3.34.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 +62 -4
- package/dist/bundle.js +244 -43
- package/dist/bundle.min.js +2 -2
- package/dist/hdate-bundle.js +2 -2
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +2 -2
- package/dist/hdate.mjs +2 -2
- package/dist/index.js +246 -77
- package/dist/index.mjs +246 -77
- package/hebcal.d.ts +25 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1130,12 +1130,15 @@ Class representing halachic times
|
|
|
1130
1130
|
* [.misheyakirMachmir()](#Zmanim+misheyakirMachmir) ⇒ <code>Date</code>
|
|
1131
1131
|
* [.sofZmanShma()](#Zmanim+sofZmanShma) ⇒ <code>Date</code>
|
|
1132
1132
|
* [.sofZmanTfilla()](#Zmanim+sofZmanTfilla) ⇒ <code>Date</code>
|
|
1133
|
+
* [.sofZmanShmaMGA()](#Zmanim+sofZmanShmaMGA) ⇒ <code>Date</code>
|
|
1134
|
+
* [.sofZmanTfillaMGA()](#Zmanim+sofZmanTfillaMGA) ⇒ <code>Date</code>
|
|
1133
1135
|
* [.minchaGedola()](#Zmanim+minchaGedola) ⇒ <code>Date</code>
|
|
1134
1136
|
* [.minchaKetana()](#Zmanim+minchaKetana) ⇒ <code>Date</code>
|
|
1135
1137
|
* [.plagHaMincha()](#Zmanim+plagHaMincha) ⇒ <code>Date</code>
|
|
1136
1138
|
* [.tzeit([angle])](#Zmanim+tzeit) ⇒ <code>Date</code>
|
|
1137
1139
|
* [.neitzHaChama()](#Zmanim+neitzHaChama) ⇒ <code>Date</code>
|
|
1138
1140
|
* [.shkiah()](#Zmanim+shkiah) ⇒ <code>Date</code>
|
|
1141
|
+
* [.sunriseOffset(offset)](#Zmanim+sunriseOffset) ⇒ <code>Date</code>
|
|
1139
1142
|
* [.sunsetOffset(offset)](#Zmanim+sunsetOffset) ⇒ <code>Date</code>
|
|
1140
1143
|
* ~~[.sunsetOffsetTime(offset, timeFormat)](#Zmanim+sunsetOffsetTime) ⇒ <code>Array.<Object></code>~~
|
|
1141
1144
|
* ~~[.tzeitTime(angle, timeFormat)](#Zmanim+tzeitTime) ⇒ <code>Array.<Object></code>~~
|
|
@@ -1166,18 +1169,26 @@ Initialize a Zmanim instance.
|
|
|
1166
1169
|
<a name="Zmanim+sunrise"></a>
|
|
1167
1170
|
|
|
1168
1171
|
### zmanim.sunrise() ⇒ <code>Date</code>
|
|
1172
|
+
Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
1173
|
+
|
|
1169
1174
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1170
1175
|
<a name="Zmanim+sunset"></a>
|
|
1171
1176
|
|
|
1172
1177
|
### zmanim.sunset() ⇒ <code>Date</code>
|
|
1178
|
+
When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
1179
|
+
|
|
1173
1180
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1174
1181
|
<a name="Zmanim+dawn"></a>
|
|
1175
1182
|
|
|
1176
1183
|
### zmanim.dawn() ⇒ <code>Date</code>
|
|
1184
|
+
Civil dawn; Sun is 6° below the horizon in the morning
|
|
1185
|
+
|
|
1177
1186
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1178
1187
|
<a name="Zmanim+dusk"></a>
|
|
1179
1188
|
|
|
1180
1189
|
### zmanim.dusk() ⇒ <code>Date</code>
|
|
1190
|
+
Civil dusk; Sun is 6° below the horizon in the evening
|
|
1191
|
+
|
|
1181
1192
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1182
1193
|
<a name="Zmanim+hour"></a>
|
|
1183
1194
|
|
|
@@ -1211,42 +1222,74 @@ Initialize a Zmanim instance.
|
|
|
1211
1222
|
<a name="Zmanim+chatzot"></a>
|
|
1212
1223
|
|
|
1213
1224
|
### zmanim.chatzot() ⇒ <code>Date</code>
|
|
1225
|
+
Midday – Chatzot; Sunrise plus 6 halachic hours
|
|
1226
|
+
|
|
1214
1227
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1215
1228
|
<a name="Zmanim+chatzotNight"></a>
|
|
1216
1229
|
|
|
1217
1230
|
### zmanim.chatzotNight() ⇒ <code>Date</code>
|
|
1231
|
+
Midnight – Chatzot; Sunset plus 6 halachic hours
|
|
1232
|
+
|
|
1218
1233
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1219
1234
|
<a name="Zmanim+alotHaShachar"></a>
|
|
1220
1235
|
|
|
1221
1236
|
### zmanim.alotHaShachar() ⇒ <code>Date</code>
|
|
1237
|
+
Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning
|
|
1238
|
+
|
|
1222
1239
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1223
1240
|
<a name="Zmanim+misheyakir"></a>
|
|
1224
1241
|
|
|
1225
1242
|
### zmanim.misheyakir() ⇒ <code>Date</code>
|
|
1243
|
+
Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning
|
|
1244
|
+
|
|
1226
1245
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1227
1246
|
<a name="Zmanim+misheyakirMachmir"></a>
|
|
1228
1247
|
|
|
1229
1248
|
### zmanim.misheyakirMachmir() ⇒ <code>Date</code>
|
|
1249
|
+
Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning
|
|
1250
|
+
|
|
1230
1251
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1231
1252
|
<a name="Zmanim+sofZmanShma"></a>
|
|
1232
1253
|
|
|
1233
1254
|
### zmanim.sofZmanShma() ⇒ <code>Date</code>
|
|
1255
|
+
Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra
|
|
1256
|
+
|
|
1234
1257
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1235
1258
|
<a name="Zmanim+sofZmanTfilla"></a>
|
|
1236
1259
|
|
|
1237
1260
|
### zmanim.sofZmanTfilla() ⇒ <code>Date</code>
|
|
1261
|
+
Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra
|
|
1262
|
+
|
|
1263
|
+
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1264
|
+
<a name="Zmanim+sofZmanShmaMGA"></a>
|
|
1265
|
+
|
|
1266
|
+
### zmanim.sofZmanShmaMGA() ⇒ <code>Date</code>
|
|
1267
|
+
Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham
|
|
1268
|
+
|
|
1269
|
+
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1270
|
+
<a name="Zmanim+sofZmanTfillaMGA"></a>
|
|
1271
|
+
|
|
1272
|
+
### zmanim.sofZmanTfillaMGA() ⇒ <code>Date</code>
|
|
1273
|
+
Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham
|
|
1274
|
+
|
|
1238
1275
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1239
1276
|
<a name="Zmanim+minchaGedola"></a>
|
|
1240
1277
|
|
|
1241
1278
|
### zmanim.minchaGedola() ⇒ <code>Date</code>
|
|
1279
|
+
Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours
|
|
1280
|
+
|
|
1242
1281
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1243
1282
|
<a name="Zmanim+minchaKetana"></a>
|
|
1244
1283
|
|
|
1245
1284
|
### zmanim.minchaKetana() ⇒ <code>Date</code>
|
|
1285
|
+
Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours
|
|
1286
|
+
|
|
1246
1287
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1247
1288
|
<a name="Zmanim+plagHaMincha"></a>
|
|
1248
1289
|
|
|
1249
1290
|
### zmanim.plagHaMincha() ⇒ <code>Date</code>
|
|
1291
|
+
Plag haMincha; Sunrise plus 10.75 halachic hours
|
|
1292
|
+
|
|
1250
1293
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1251
1294
|
<a name="Zmanim+tzeit"></a>
|
|
1252
1295
|
|
|
@@ -1260,21 +1303,36 @@ Initialize a Zmanim instance.
|
|
|
1260
1303
|
<a name="Zmanim+neitzHaChama"></a>
|
|
1261
1304
|
|
|
1262
1305
|
### zmanim.neitzHaChama() ⇒ <code>Date</code>
|
|
1306
|
+
Alias for sunrise
|
|
1307
|
+
|
|
1263
1308
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1264
1309
|
<a name="Zmanim+shkiah"></a>
|
|
1265
1310
|
|
|
1266
1311
|
### zmanim.shkiah() ⇒ <code>Date</code>
|
|
1312
|
+
Alias for sunset
|
|
1313
|
+
|
|
1267
1314
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1315
|
+
<a name="Zmanim+sunriseOffset"></a>
|
|
1316
|
+
|
|
1317
|
+
### zmanim.sunriseOffset(offset) ⇒ <code>Date</code>
|
|
1318
|
+
Returns sunrise + `offset` minutes (either positive or negative).
|
|
1319
|
+
|
|
1320
|
+
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1321
|
+
|
|
1322
|
+
| Param | Type | Description |
|
|
1323
|
+
| --- | --- | --- |
|
|
1324
|
+
| offset | <code>number</code> | minutes |
|
|
1325
|
+
|
|
1268
1326
|
<a name="Zmanim+sunsetOffset"></a>
|
|
1269
1327
|
|
|
1270
1328
|
### zmanim.sunsetOffset(offset) ⇒ <code>Date</code>
|
|
1271
|
-
Returns sunset + offset (either positive or negative).
|
|
1329
|
+
Returns sunset + `offset` minutes (either positive or negative).
|
|
1272
1330
|
|
|
1273
1331
|
**Kind**: instance method of [<code>Zmanim</code>](#Zmanim)
|
|
1274
1332
|
|
|
1275
|
-
| Param | Type |
|
|
1276
|
-
| --- | --- |
|
|
1277
|
-
| offset | <code>number</code> |
|
|
1333
|
+
| Param | Type | Description |
|
|
1334
|
+
| --- | --- | --- |
|
|
1335
|
+
| offset | <code>number</code> | minutes |
|
|
1278
1336
|
|
|
1279
1337
|
<a name="Zmanim+sunsetOffsetTime"></a>
|
|
1280
1338
|
|
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.34.0 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -3538,13 +3538,6 @@ var HebrewDateEvent = /*#__PURE__*/function (_Event) {
|
|
|
3538
3538
|
return HebrewDateEvent;
|
|
3539
3539
|
}(Event);
|
|
3540
3540
|
|
|
3541
|
-
var sun = {};
|
|
3542
|
-
|
|
3543
|
-
Object.defineProperty(sun, "__esModule", {
|
|
3544
|
-
value: true
|
|
3545
|
-
});
|
|
3546
|
-
var Sun_1 = sun.Sun = void 0;
|
|
3547
|
-
|
|
3548
3541
|
var Sun = /*#__PURE__*/function () {
|
|
3549
3542
|
function Sun(date, latitude, longitude) {
|
|
3550
3543
|
_classCallCheck(this, Sun);
|
|
@@ -3570,8 +3563,6 @@ var Sun = /*#__PURE__*/function () {
|
|
|
3570
3563
|
return Sun;
|
|
3571
3564
|
}();
|
|
3572
3565
|
|
|
3573
|
-
Sun_1 = sun.Sun = Sun;
|
|
3574
|
-
|
|
3575
3566
|
function formatDate(date, minutes) {
|
|
3576
3567
|
var seconds = (minutes - Math.floor(minutes)) * 60;
|
|
3577
3568
|
return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 0, minutes, seconds));
|
|
@@ -3769,6 +3760,114 @@ function calcSunriseSet(rise, angle, JD, date, latitude, longitude) // rise = 1
|
|
|
3769
3760
|
}
|
|
3770
3761
|
}
|
|
3771
3762
|
|
|
3763
|
+
var degreesBelowHorizon = {
|
|
3764
|
+
sunrise: 0.833,
|
|
3765
|
+
sunriseEnd: 0.3,
|
|
3766
|
+
twilight: 6,
|
|
3767
|
+
nauticalTwilight: 12,
|
|
3768
|
+
night: 18,
|
|
3769
|
+
goldenHour: -6
|
|
3770
|
+
};
|
|
3771
|
+
var SolarCalc = /*#__PURE__*/function () {
|
|
3772
|
+
function SolarCalc(date, latitude, longitude) {
|
|
3773
|
+
_classCallCheck(this, SolarCalc);
|
|
3774
|
+
|
|
3775
|
+
this.date = date;
|
|
3776
|
+
this.lat = latitude;
|
|
3777
|
+
this.longitude = longitude;
|
|
3778
|
+
this.sun = new Sun(date, latitude, longitude);
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
_createClass(SolarCalc, [{
|
|
3782
|
+
key: "solarNoon",
|
|
3783
|
+
get: function get() {
|
|
3784
|
+
return this.sun.solarNoon;
|
|
3785
|
+
}
|
|
3786
|
+
}, {
|
|
3787
|
+
key: "sunrise",
|
|
3788
|
+
get: function get() {
|
|
3789
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.sunrise, true);
|
|
3790
|
+
}
|
|
3791
|
+
}, {
|
|
3792
|
+
key: "sunset",
|
|
3793
|
+
get: function get() {
|
|
3794
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.sunrise);
|
|
3795
|
+
}
|
|
3796
|
+
}, {
|
|
3797
|
+
key: "sunriseEnd",
|
|
3798
|
+
get: function get() {
|
|
3799
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.sunriseEnd, true);
|
|
3800
|
+
}
|
|
3801
|
+
}, {
|
|
3802
|
+
key: "sunsetStart",
|
|
3803
|
+
get: function get() {
|
|
3804
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.sunriseEnd, false);
|
|
3805
|
+
}
|
|
3806
|
+
}, {
|
|
3807
|
+
key: "civilDawn",
|
|
3808
|
+
get: function get() {
|
|
3809
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.twilight, true);
|
|
3810
|
+
}
|
|
3811
|
+
}, {
|
|
3812
|
+
key: "dawn",
|
|
3813
|
+
get: function get() {
|
|
3814
|
+
return this.civilDawn;
|
|
3815
|
+
}
|
|
3816
|
+
}, {
|
|
3817
|
+
key: "civilDusk",
|
|
3818
|
+
get: function get() {
|
|
3819
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.twilight, false);
|
|
3820
|
+
}
|
|
3821
|
+
}, {
|
|
3822
|
+
key: "dusk",
|
|
3823
|
+
get: function get() {
|
|
3824
|
+
return this.civilDusk;
|
|
3825
|
+
}
|
|
3826
|
+
}, {
|
|
3827
|
+
key: "nauticalDawn",
|
|
3828
|
+
get: function get() {
|
|
3829
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.nauticalTwilight, true);
|
|
3830
|
+
}
|
|
3831
|
+
}, {
|
|
3832
|
+
key: "nauticalDusk",
|
|
3833
|
+
get: function get() {
|
|
3834
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.nauticalTwilight, false);
|
|
3835
|
+
}
|
|
3836
|
+
}, {
|
|
3837
|
+
key: "nightStart",
|
|
3838
|
+
get: function get() {
|
|
3839
|
+
return this.astronomicalDusk;
|
|
3840
|
+
}
|
|
3841
|
+
}, {
|
|
3842
|
+
key: "astronomicalDusk",
|
|
3843
|
+
get: function get() {
|
|
3844
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.night, false);
|
|
3845
|
+
}
|
|
3846
|
+
}, {
|
|
3847
|
+
key: "astronomicalDawn",
|
|
3848
|
+
get: function get() {
|
|
3849
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.night, true);
|
|
3850
|
+
}
|
|
3851
|
+
}, {
|
|
3852
|
+
key: "nightEnd",
|
|
3853
|
+
get: function get() {
|
|
3854
|
+
return this.astronomicalDawn;
|
|
3855
|
+
}
|
|
3856
|
+
}, {
|
|
3857
|
+
key: "goldenHourStart",
|
|
3858
|
+
get: function get() {
|
|
3859
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.goldenHour, false);
|
|
3860
|
+
}
|
|
3861
|
+
}, {
|
|
3862
|
+
key: "goldenHourEnd",
|
|
3863
|
+
get: function get() {
|
|
3864
|
+
return this.sun.timeAtAngle(degreesBelowHorizon.goldenHour, true);
|
|
3865
|
+
}
|
|
3866
|
+
}]);
|
|
3867
|
+
|
|
3868
|
+
return SolarCalc;
|
|
3869
|
+
}();
|
|
3870
|
+
|
|
3772
3871
|
var _formatters = {};
|
|
3773
3872
|
/**
|
|
3774
3873
|
* @private
|
|
@@ -3907,7 +4006,8 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
3907
4006
|
|
|
3908
4007
|
var dt = greg.isDate(date) ? date : HDate.isHDate(date) ? date.greg() : throwTypeError$2("invalid date: ".concat(date));
|
|
3909
4008
|
this.date = dt;
|
|
3910
|
-
this.
|
|
4009
|
+
this.solarCalc = new SolarCalc(this.date, latitude, longitude);
|
|
4010
|
+
this.sun = this.solarCalc.sun;
|
|
3911
4011
|
this.latitude = latitude;
|
|
3912
4012
|
this.longitude = longitude;
|
|
3913
4013
|
}
|
|
@@ -3921,52 +4021,64 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
3921
4021
|
key: "suntime",
|
|
3922
4022
|
value: function suntime() {
|
|
3923
4023
|
return {
|
|
3924
|
-
solarNoon: this.
|
|
4024
|
+
solarNoon: this.solarCalc.solarNoon,
|
|
3925
4025
|
sunrise: this.sunrise(),
|
|
3926
4026
|
sunset: this.sunset(),
|
|
3927
|
-
sunriseEnd: this.
|
|
3928
|
-
sunsetStart: this.
|
|
4027
|
+
sunriseEnd: this.solarCalc.sunriseEnd,
|
|
4028
|
+
sunsetStart: this.solarCalc.sunsetStart,
|
|
3929
4029
|
dawn: this.dawn(),
|
|
3930
4030
|
dusk: this.dusk(),
|
|
3931
|
-
nauticalDawn: this.
|
|
3932
|
-
nauticalDusk: this.
|
|
3933
|
-
nightEnd: this.
|
|
3934
|
-
night: this.
|
|
3935
|
-
goldenHourEnd: this.
|
|
3936
|
-
goldenHour: this.
|
|
4031
|
+
nauticalDawn: this.solarCalc.nauticalDawn,
|
|
4032
|
+
nauticalDusk: this.solarCalc.nauticalDusk,
|
|
4033
|
+
nightEnd: this.solarCalc.nightEnd,
|
|
4034
|
+
night: this.solarCalc.nightStart,
|
|
4035
|
+
goldenHourEnd: this.solarCalc.goldenHourEnd,
|
|
4036
|
+
goldenHour: this.solarCalc.goldenHourStart,
|
|
3937
4037
|
alotHaShachar: this.alotHaShachar(),
|
|
3938
4038
|
misheyakir: this.misheyakir(),
|
|
3939
4039
|
misheyakirMachmir: this.misheyakirMachmir(),
|
|
3940
4040
|
tzeit: this.tzeit()
|
|
3941
4041
|
};
|
|
3942
4042
|
}
|
|
3943
|
-
/**
|
|
4043
|
+
/**
|
|
4044
|
+
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
4045
|
+
* @return {Date}
|
|
4046
|
+
*/
|
|
3944
4047
|
|
|
3945
4048
|
}, {
|
|
3946
4049
|
key: "sunrise",
|
|
3947
4050
|
value: function sunrise() {
|
|
3948
4051
|
return this.sun.timeAtAngle(0.833333, true);
|
|
3949
4052
|
}
|
|
3950
|
-
/**
|
|
4053
|
+
/**
|
|
4054
|
+
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon)
|
|
4055
|
+
* @return {Date}
|
|
4056
|
+
*/
|
|
3951
4057
|
|
|
3952
4058
|
}, {
|
|
3953
4059
|
key: "sunset",
|
|
3954
4060
|
value: function sunset() {
|
|
3955
4061
|
return this.sun.timeAtAngle(0.833333, false);
|
|
3956
4062
|
}
|
|
3957
|
-
/**
|
|
4063
|
+
/**
|
|
4064
|
+
* Civil dawn; Sun is 6° below the horizon in the morning
|
|
4065
|
+
* @return {Date}
|
|
4066
|
+
*/
|
|
3958
4067
|
|
|
3959
4068
|
}, {
|
|
3960
4069
|
key: "dawn",
|
|
3961
4070
|
value: function dawn() {
|
|
3962
|
-
return this.
|
|
4071
|
+
return this.solarCalc.dawn;
|
|
3963
4072
|
}
|
|
3964
|
-
/**
|
|
4073
|
+
/**
|
|
4074
|
+
* Civil dusk; Sun is 6° below the horizon in the evening
|
|
4075
|
+
* @return {Date}
|
|
4076
|
+
*/
|
|
3965
4077
|
|
|
3966
4078
|
}, {
|
|
3967
4079
|
key: "dusk",
|
|
3968
4080
|
value: function dusk() {
|
|
3969
|
-
return this.
|
|
4081
|
+
return this.solarCalc.dusk;
|
|
3970
4082
|
}
|
|
3971
4083
|
/** @return {number} */
|
|
3972
4084
|
|
|
@@ -4018,42 +4130,60 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4018
4130
|
value: function hourOffset(hours) {
|
|
4019
4131
|
return new Date(this.sunrise().getTime() + this.hour() * hours);
|
|
4020
4132
|
}
|
|
4021
|
-
/**
|
|
4133
|
+
/**
|
|
4134
|
+
* Midday – Chatzot; Sunrise plus 6 halachic hours
|
|
4135
|
+
* @return {Date}
|
|
4136
|
+
*/
|
|
4022
4137
|
|
|
4023
4138
|
}, {
|
|
4024
4139
|
key: "chatzot",
|
|
4025
4140
|
value: function chatzot() {
|
|
4026
4141
|
return this.hourOffset(6);
|
|
4027
4142
|
}
|
|
4028
|
-
/**
|
|
4143
|
+
/**
|
|
4144
|
+
* Midnight – Chatzot; Sunset plus 6 halachic hours
|
|
4145
|
+
* @return {Date}
|
|
4146
|
+
*/
|
|
4029
4147
|
|
|
4030
4148
|
}, {
|
|
4031
4149
|
key: "chatzotNight",
|
|
4032
4150
|
value: function chatzotNight() {
|
|
4033
4151
|
return new Date(this.sunrise().getTime() - this.nightHour() * 6);
|
|
4034
4152
|
}
|
|
4035
|
-
/**
|
|
4153
|
+
/**
|
|
4154
|
+
* Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning
|
|
4155
|
+
* @return {Date}
|
|
4156
|
+
*/
|
|
4036
4157
|
|
|
4037
4158
|
}, {
|
|
4038
4159
|
key: "alotHaShachar",
|
|
4039
4160
|
value: function alotHaShachar() {
|
|
4040
4161
|
return this.sun.timeAtAngle(16.1, true);
|
|
4041
4162
|
}
|
|
4042
|
-
/**
|
|
4163
|
+
/**
|
|
4164
|
+
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning
|
|
4165
|
+
* @return {Date}
|
|
4166
|
+
*/
|
|
4043
4167
|
|
|
4044
4168
|
}, {
|
|
4045
4169
|
key: "misheyakir",
|
|
4046
4170
|
value: function misheyakir() {
|
|
4047
4171
|
return this.sun.timeAtAngle(11.5, true);
|
|
4048
4172
|
}
|
|
4049
|
-
/**
|
|
4173
|
+
/**
|
|
4174
|
+
* Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning
|
|
4175
|
+
* @return {Date}
|
|
4176
|
+
*/
|
|
4050
4177
|
|
|
4051
4178
|
}, {
|
|
4052
4179
|
key: "misheyakirMachmir",
|
|
4053
4180
|
value: function misheyakirMachmir() {
|
|
4054
4181
|
return this.sun.timeAtAngle(10.2, true);
|
|
4055
4182
|
}
|
|
4056
|
-
/**
|
|
4183
|
+
/**
|
|
4184
|
+
* Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra
|
|
4185
|
+
* @return {Date}
|
|
4186
|
+
*/
|
|
4057
4187
|
|
|
4058
4188
|
}, {
|
|
4059
4189
|
key: "sofZmanShma",
|
|
@@ -4061,7 +4191,10 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4061
4191
|
// Gra
|
|
4062
4192
|
return this.hourOffset(3);
|
|
4063
4193
|
}
|
|
4064
|
-
/**
|
|
4194
|
+
/**
|
|
4195
|
+
* Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra
|
|
4196
|
+
* @return {Date}
|
|
4197
|
+
*/
|
|
4065
4198
|
|
|
4066
4199
|
}, {
|
|
4067
4200
|
key: "sofZmanTfilla",
|
|
@@ -4069,21 +4202,60 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4069
4202
|
// Gra
|
|
4070
4203
|
return this.hourOffset(4);
|
|
4071
4204
|
}
|
|
4072
|
-
/**
|
|
4205
|
+
/**
|
|
4206
|
+
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham
|
|
4207
|
+
* @return {Date}
|
|
4208
|
+
*/
|
|
4209
|
+
|
|
4210
|
+
}, {
|
|
4211
|
+
key: "sofZmanShmaMGA",
|
|
4212
|
+
value: function sofZmanShmaMGA() {
|
|
4213
|
+
// Magen Avraham
|
|
4214
|
+
var alot72 = this.sunriseOffset(-72);
|
|
4215
|
+
var tzeit72 = this.sunsetOffset(72);
|
|
4216
|
+
var temporalHour = (tzeit72 - alot72) / 12; // ms in hour
|
|
4217
|
+
|
|
4218
|
+
return new Date(alot72.getTime() + 3 * temporalHour);
|
|
4219
|
+
}
|
|
4220
|
+
/**
|
|
4221
|
+
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham
|
|
4222
|
+
* @return {Date}
|
|
4223
|
+
*/
|
|
4224
|
+
|
|
4225
|
+
}, {
|
|
4226
|
+
key: "sofZmanTfillaMGA",
|
|
4227
|
+
value: function sofZmanTfillaMGA() {
|
|
4228
|
+
// Magen Avraham
|
|
4229
|
+
var alot72 = this.sunriseOffset(-72);
|
|
4230
|
+
var tzeit72 = this.sunsetOffset(72);
|
|
4231
|
+
var temporalHour = (tzeit72 - alot72) / 12; // ms in hour
|
|
4232
|
+
|
|
4233
|
+
return new Date(alot72.getTime() + 4 * temporalHour);
|
|
4234
|
+
}
|
|
4235
|
+
/**
|
|
4236
|
+
* Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours
|
|
4237
|
+
* @return {Date}
|
|
4238
|
+
*/
|
|
4073
4239
|
|
|
4074
4240
|
}, {
|
|
4075
4241
|
key: "minchaGedola",
|
|
4076
4242
|
value: function minchaGedola() {
|
|
4077
4243
|
return this.hourOffset(6.5);
|
|
4078
4244
|
}
|
|
4079
|
-
/**
|
|
4245
|
+
/**
|
|
4246
|
+
* Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours
|
|
4247
|
+
* @return {Date}
|
|
4248
|
+
*/
|
|
4080
4249
|
|
|
4081
4250
|
}, {
|
|
4082
4251
|
key: "minchaKetana",
|
|
4083
4252
|
value: function minchaKetana() {
|
|
4084
4253
|
return this.hourOffset(9.5);
|
|
4085
4254
|
}
|
|
4086
|
-
/**
|
|
4255
|
+
/**
|
|
4256
|
+
* Plag haMincha; Sunrise plus 10.75 halachic hours
|
|
4257
|
+
* @return {Date}
|
|
4258
|
+
*/
|
|
4087
4259
|
|
|
4088
4260
|
}, {
|
|
4089
4261
|
key: "plagHaMincha",
|
|
@@ -4102,14 +4274,20 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4102
4274
|
var angle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8.5;
|
|
4103
4275
|
return this.sun.timeAtAngle(angle, false);
|
|
4104
4276
|
}
|
|
4105
|
-
/**
|
|
4277
|
+
/**
|
|
4278
|
+
* Alias for sunrise
|
|
4279
|
+
* @return {Date}
|
|
4280
|
+
*/
|
|
4106
4281
|
|
|
4107
4282
|
}, {
|
|
4108
4283
|
key: "neitzHaChama",
|
|
4109
4284
|
value: function neitzHaChama() {
|
|
4110
4285
|
return this.sunrise();
|
|
4111
4286
|
}
|
|
4112
|
-
/**
|
|
4287
|
+
/**
|
|
4288
|
+
* Alias for sunset
|
|
4289
|
+
* @return {Date}
|
|
4290
|
+
*/
|
|
4113
4291
|
|
|
4114
4292
|
}, {
|
|
4115
4293
|
key: "shkiah",
|
|
@@ -4124,14 +4302,37 @@ var Zmanim = /*#__PURE__*/function () {
|
|
|
4124
4302
|
*/
|
|
4125
4303
|
|
|
4126
4304
|
}, {
|
|
4127
|
-
key: "
|
|
4305
|
+
key: "sunriseOffset",
|
|
4128
4306
|
value:
|
|
4129
4307
|
/**
|
|
4130
|
-
* Returns
|
|
4131
|
-
* @param {number} offset
|
|
4308
|
+
* Returns sunrise + `offset` minutes (either positive or negative).
|
|
4309
|
+
* @param {number} offset minutes
|
|
4310
|
+
* @return {Date}
|
|
4311
|
+
*/
|
|
4312
|
+
function sunriseOffset(offset) {
|
|
4313
|
+
var sunrise = this.sunrise();
|
|
4314
|
+
|
|
4315
|
+
if (isNaN(sunrise.getTime())) {
|
|
4316
|
+
return sunrise;
|
|
4317
|
+
} // For positive offsets only, round up to next minute if needed
|
|
4318
|
+
|
|
4319
|
+
|
|
4320
|
+
if (offset > 0 && sunrise.getSeconds() >= 30) {
|
|
4321
|
+
offset++;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
sunrise.setSeconds(0);
|
|
4325
|
+
return new Date(sunrise.getTime() + offset * 60 * 1000);
|
|
4326
|
+
}
|
|
4327
|
+
/**
|
|
4328
|
+
* Returns sunset + `offset` minutes (either positive or negative).
|
|
4329
|
+
* @param {number} offset minutes
|
|
4132
4330
|
* @return {Date}
|
|
4133
4331
|
*/
|
|
4134
|
-
|
|
4332
|
+
|
|
4333
|
+
}, {
|
|
4334
|
+
key: "sunsetOffset",
|
|
4335
|
+
value: function sunsetOffset(offset) {
|
|
4135
4336
|
var sunset = this.sunset();
|
|
4136
4337
|
|
|
4137
4338
|
if (isNaN(sunset.getTime())) {
|
|
@@ -7077,7 +7278,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
7077
7278
|
return new HDate(day, month, hyear);
|
|
7078
7279
|
}
|
|
7079
7280
|
|
|
7080
|
-
var version="3.
|
|
7281
|
+
var version="3.34.0";
|
|
7081
7282
|
|
|
7082
7283
|
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
7083
7284
|
|