jcal-zmanim 1.5.11 → 1.5.13

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 CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  A comprehensive JavaScript library for the Jewish Calendar.
4
4
 
5
+ ## Table of Contents
6
+
7
+ ### Getting Started
8
+
9
+ - [Installation](#to-add-jcal-zmanim-to-your-project)
10
+ - [Basic Usage](#some-basic-uses-of-jcal-zmanim)
11
+
12
+ ### API Reference
13
+
14
+ - [The jDate Object](#the-jdate-object)
15
+ - [Creating a jDate](#creating-a-jdate-instance)
16
+ - [Properties and Functions](#jdate-instance-properties-and-functions)
17
+ - [Static Properties and Functions](#jdate-static-properties-and-functions)
18
+ - [The Location Object](#the-location-object)
19
+ - [Finding a Location](#finding-a-location)
20
+ - [Properties and Functions](#location-properties-and-functions)
21
+ - [Creating a Location](#creating-a-new-location)
22
+ - [Polar Regions](#polar-regions)
23
+ - [Zmanim](#zmanim)
24
+ - [Zmanim Types](#zmanim-types)
25
+ - [Calculate other Zmanim](#calculate-other-zmanim)
26
+ - [The Sedra Object](#the-sedra-object)
27
+ - [The Dafyomi Object](#the-dafyomi-object)
28
+ - [The Molad Functions](#the-molad-functions)
29
+ - [Daily Notifications](#daily-notifications-and-shul-notifications)
30
+ - [The Utils Functions](#the-utils-functions)
31
+
32
+ ---
33
+
5
34
  ### To add _jcal-zmanim_ to your project
6
35
 
7
36
  > _npm install jcal-zmanim_
@@ -10,13 +39,6 @@ OR
10
39
 
11
40
  > _yarn add jcal-zmanim_
12
41
 
13
- ### Performance
14
-
15
- As of version 1.5.8, `jcal-zmanim` includes built-in caching for complex astronomical and calendar calculations.
16
-
17
- - **Zmanim Caching:** Sunrise/Sunset calculations are cached per date/location to improve performance when rendering calendars or lists of zmanim.
18
- - **Calendar Caching:** Year-based calculations are cached to speed up date conversions and manipulations.
19
-
20
42
  ### Some basic uses of _jcal-zmanim_
21
43
 
22
44
  ##### Print out todays Jewish Date
@@ -144,19 +166,25 @@ The code above, prints out to the console:
144
166
 
145
167
  ## The jDate object
146
168
 
147
- A _jDate_ is a single day in the Jewish Calendar.<br>
169
+ A **_jDate_** is a **single day in the Jewish Calendar**.<br>
148
170
  It is used as the basic date unit throughout jcal-zmanim.
149
171
 
150
172
  ```javascript
151
173
  import { jDate } from "jcal-zmanim";
152
174
 
153
- //The following will create a Jewish Date object for todays Date.
175
+ //Create a jDate object for todays Date.
154
176
  const jdate = new jDate();
155
-
156
- //The following will output the above Jewish Date in the format: Thursday, the 3rd of Kislev 5784.
157
177
  console.log(jdate.toString());
178
+ //Output: Wednesday, the 18th of Teves 5786
179
+
180
+ //Create a jDate object for January 9 2035.
181
+ const jdate2 = new jDate("January 9 2035");
182
+ console.log(jdate2.toStringHeb());
183
+ //Output: יום שלישי כ"ח טבת תשצ"ה
158
184
  ```
159
185
 
186
+ It is important to note that in jcal-zmanim, the Jewish Months start at Nissan (1) and end at Adar Sheini (13) as it is in the Torah.
187
+
160
188
  ### Creating a jDate instance
161
189
 
162
190
  A jDate can be created in a number of ways:
@@ -164,7 +192,7 @@ A jDate can be created in a number of ways:
164
192
  #### Create a jDate using the jDate constructor
165
193
 
166
194
  - `const jdate = new jDate()` - Sets the Jewish Date for the current system date
167
- - `const jdate = new jDate(javascriptDateObject)` - Sets to the Jewish date on the given Gregorian date
195
+ - `const jdate = new jDate(Date)` - Sets to the Jewish date on the given Javascript/Typescript Date object
168
196
  - `const jdate = new jDate("January 1 2045")` - Accepts any valid javascript Date string (uses JavaScript's new Date(string))
169
197
  - `const jdate = new jDate(jewishYear, jewishMonth, jewishDay)` - Months start at 1. Nissan is month 1 Adar Sheini is 13.
170
198
  - `const jdate = new jDate(jewishYear, jewishMonth)` - Same as above, with Day defaulting to 1
@@ -175,20 +203,20 @@ A jDate can be created in a number of ways:
175
203
  - `const jdate = new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)` - Most efficient constructor. Needs no calculations at all.
176
204
  - `const jdate = new jDate( { year: 5776, month: 4, day: 5, abs: 122548708 } )` - same as new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)
177
205
 
178
- #### Create a jDate using the static _toJDate_ function
206
+ ### Static jDate Constructors
179
207
 
180
- - `jDate.toJDate()` OR `jDate.now()` - To get the current Jewish Date.
208
+ - Besides for `new jDate()`, you can also use `jDate.now()` to get the current Jewish Date.
181
209
 
182
210
  ```javascript
183
- //To print out the current Jewish Date in English.
184
- console.log(jDate.toJDate().toString());
185
211
  //A shortcut to get the current jDate.
186
212
  const currentJDate = jDate.now();
213
+ //To print out the current Jewish Date in English.
214
+ console.log(currentJDate.toString());
187
215
  //To print out the current Jewish Date in Hebrew:
188
- console.log(jDate.now().toStringHeb());
216
+ console.log(currentJDate.toStringHeb());
189
217
  ```
190
218
 
191
- - `jDate.toJDate(Date)` - Sets to the Jewish date on the given Javascript Date object
219
+ - The static function `jDate.toJDate(Date)` can also be used to convert a Javascript Date object to a jDate object.
192
220
  - `jDate.toJDate("January 1 2045")` - Accepts any valid Javascript Date string (uses string constructor of Date object)
193
221
 
194
222
  ```javascript
@@ -343,13 +371,13 @@ import { Location } from "jcal-zmanim";
343
371
 
344
372
  const myLocation = new Location(
345
373
  "Nowhere", // The location name
346
- "יהופיץ", //The name in Hebrew.
374
+ "יהופיץ", // The name in Hebrew
347
375
  false, // This place is not in Israel
348
- 35.01 - // The latitude. North is positive.
349
- 155.23, // The longitude. East is negative.
350
- 11, // The Time Zone: The number of hours offset from UTC.
376
+ 35.01, // The latitude. North is positive
377
+ 155.23, // The longitude. East is negative
378
+ 11, // The Time Zone: The number of hours offset from UTC
351
379
  1106, // The elevation in Meters. (Feet x 3.2808)
352
- 18 // The number of minutes before sunset candles are lit on Erev Shabbos.
380
+ 18 // The number of minutes before sunset candles are lit on Erev Shabbos
353
381
  );
354
382
  ```
355
383
 
package/dist/README.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  A comprehensive JavaScript library for the Jewish Calendar.
4
4
 
5
+ ## Table of Contents
6
+
7
+ ### Getting Started
8
+
9
+ - [Installation](#to-add-jcal-zmanim-to-your-project)
10
+ - [Basic Usage](#some-basic-uses-of-jcal-zmanim)
11
+
12
+ ### API Reference
13
+
14
+ - [The jDate Object](#the-jdate-object)
15
+ - [Creating a jDate](#creating-a-jdate-instance)
16
+ - [Properties and Functions](#jdate-instance-properties-and-functions)
17
+ - [Static Properties and Functions](#jdate-static-properties-and-functions)
18
+ - [The Location Object](#the-location-object)
19
+ - [Finding a Location](#finding-a-location)
20
+ - [Properties and Functions](#location-properties-and-functions)
21
+ - [Creating a Location](#creating-a-new-location)
22
+ - [Polar Regions](#polar-regions)
23
+ - [Zmanim](#zmanim)
24
+ - [Zmanim Types](#zmanim-types)
25
+ - [Calculate other Zmanim](#calculate-other-zmanim)
26
+ - [The Sedra Object](#the-sedra-object)
27
+ - [The Dafyomi Object](#the-dafyomi-object)
28
+ - [The Molad Functions](#the-molad-functions)
29
+ - [Daily Notifications](#daily-notifications-and-shul-notifications)
30
+ - [The Utils Functions](#the-utils-functions)
31
+
32
+ ---
33
+
5
34
  ### To add _jcal-zmanim_ to your project
6
35
 
7
36
  > _npm install jcal-zmanim_
@@ -10,13 +39,6 @@ OR
10
39
 
11
40
  > _yarn add jcal-zmanim_
12
41
 
13
- ### Performance 🚀
14
-
15
- As of version 1.5.8, `jcal-zmanim` includes built-in caching for complex astronomical and calendar calculations.
16
-
17
- - **Zmanim Caching:** Sunrise/Sunset calculations are cached per date/location to drastically improve performance when rendering calendars or lists of zmanim.
18
- - **Calendar Caching:** Year-based calculations are cached to speed up date conversions and manipulations.
19
-
20
42
  ### Some basic uses of _jcal-zmanim_
21
43
 
22
44
  ##### Print out todays Jewish Date
@@ -128,7 +150,7 @@ const dallas = findLocation("Dallas");
128
150
  //Get the candle-lighting time
129
151
  const candles = erevShabbos.getCandleLighting(dallas);
130
152
 
131
- //Spit in out formatted nicely...
153
+ //Spit it out - formatted nicely...
132
154
  console.log(
133
155
  `Candle lighting time in ${dallas.Name} on ${erevShabbos.toString()} is at ${Utils.getTimeString(
134
156
  candles
@@ -144,19 +166,25 @@ The code above, prints out to the console:
144
166
 
145
167
  ## The jDate object
146
168
 
147
- A _jDate_ is a single day in the Jewish Calendar.<br>
169
+ A **_jDate_** is a **single day in the Jewish Calendar**.<br>
148
170
  It is used as the basic date unit throughout jcal-zmanim.
149
171
 
150
172
  ```javascript
151
173
  import { jDate } from "jcal-zmanim";
152
174
 
153
- //The following will create a Jewish Date object for todays Date.
175
+ //Create a jDate object for todays Date.
154
176
  const jdate = new jDate();
155
-
156
- //The following will output the above Jewish Date in the format: Thursday, the 3rd of Kislev 5784.
157
177
  console.log(jdate.toString());
178
+ //Output: Wednesday, the 18th of Teves 5786
179
+
180
+ //Create a jDate object for January 9 2035.
181
+ const jdate2 = new jDate("January 9 2035");
182
+ console.log(jdate2.toStringHeb());
183
+ //Output: יום שלישי כ"ח טבת תשצ"ה
158
184
  ```
159
185
 
186
+ It is important to note that in jcal-zmanim, the Jewish Months start at Nissan (1) and end at Adar Sheini (13) as it is in the Torah.
187
+
160
188
  ### Creating a jDate instance
161
189
 
162
190
  A jDate can be created in a number of ways:
@@ -164,7 +192,7 @@ A jDate can be created in a number of ways:
164
192
  #### Create a jDate using the jDate constructor
165
193
 
166
194
  - `const jdate = new jDate()` - Sets the Jewish Date for the current system date
167
- - `const jdate = new jDate(javascriptDateObject)` - Sets to the Jewish date on the given Gregorian date
195
+ - `const jdate = new jDate(Date)` - Sets to the Jewish date on the given Javascript/Typescript Date object
168
196
  - `const jdate = new jDate("January 1 2045")` - Accepts any valid javascript Date string (uses JavaScript's new Date(string))
169
197
  - `const jdate = new jDate(jewishYear, jewishMonth, jewishDay)` - Months start at 1. Nissan is month 1 Adar Sheini is 13.
170
198
  - `const jdate = new jDate(jewishYear, jewishMonth)` - Same as above, with Day defaulting to 1
@@ -175,20 +203,20 @@ A jDate can be created in a number of ways:
175
203
  - `const jdate = new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)` - Most efficient constructor. Needs no calculations at all.
176
204
  - `const jdate = new jDate( { year: 5776, month: 4, day: 5, abs: 122548708 } )` - same as new jDate(jewishYear, jewishMonth, jewishDay, absoluteDate)
177
205
 
178
- #### Create a jDate using the static _toJDate_ function
206
+ ### Static jDate Constructors
179
207
 
180
- - `jDate.toJDate()` OR `jDate.now()` - To get the current Jewish Date.
208
+ - Besides for `new jDate()`, you can also use `jDate.now()` to get the current Jewish Date.
181
209
 
182
210
  ```javascript
183
- //To print out the current Jewish Date in English.
184
- console.log(jDate.toJDate().toString());
185
211
  //A shortcut to get the current jDate.
186
212
  const currentJDate = jDate.now();
213
+ //To print out the current Jewish Date in English.
214
+ console.log(currentJDate.toString());
187
215
  //To print out the current Jewish Date in Hebrew:
188
- console.log(jDate.now().toStringHeb());
216
+ console.log(currentJDate.toStringHeb());
189
217
  ```
190
218
 
191
- - `jDate.toJDate(Date)` - Sets to the Jewish date on the given Javascript Date object
219
+ - The static function `jDate.toJDate(Date)` can also be used to convert a Javascript Date object to a jDate object.
192
220
  - `jDate.toJDate("January 1 2045")` - Accepts any valid Javascript Date string (uses string constructor of Date object)
193
221
 
194
222
  ```javascript
@@ -343,16 +371,22 @@ import { Location } from "jcal-zmanim";
343
371
 
344
372
  const myLocation = new Location(
345
373
  "Nowhere", // The location name
346
- "יהופיץ", //The name in Hebrew.
374
+ "יהופיץ", // The name in Hebrew
347
375
  false, // This place is not in Israel
348
- 35.01 - // The latitude. North is positive.
349
- 155.23, // The longitude. East is negative.
350
- 11, // The Time Zone: The number of hours offset from UTC.
376
+ 35.01, // The latitude. North is positive
377
+ 155.23, // The longitude. East is negative
378
+ 11, // The Time Zone: The number of hours offset from UTC
351
379
  1106, // The elevation in Meters. (Feet x 3.2808)
352
- 18 // The number of minutes before sunset candles are lit on Erev Shabbos.
380
+ 18 // The number of minutes before sunset candles are lit on Erev Shabbos
353
381
  );
354
382
  ```
355
383
 
384
+ ### Polar Regions
385
+
386
+ Calculations for locations in **Polar Regions** (where sunrise or sunset may not occur daily) will throw a specific `Error`.
387
+ `Zmanim.getSunTimes` and other Zmanim calculation functions will fail if the sun does not rise or set on the given date in the given location.
388
+ Ensure your application handles these errors (e.g., using `try...catch`) if supporting such locations.
389
+
356
390
  ---
357
391
 
358
392
  ## Zmanim
@@ -508,7 +542,7 @@ const zmanimForThose = ZmanimUtils.getZmanTimes(
508
542
  lakewood
509
543
  );
510
544
 
511
- //Print them out nicely
545
+ //Print them out
512
546
  for (let zman of zmanimForThose) {
513
547
  console.log(`${zman.zmanType.eng}: ${Utils.getTimeString(zman.time)}`);
514
548
  }
package/dist/index.cjs CHANGED
@@ -301,22 +301,13 @@ var DateUtils = /*#__PURE__*/ function() {
301
301
  value: /**
302
302
  * Add two character suffix to number. e.g. 21st, 102nd, 93rd, 500th
303
303
  */ function toSuffixed(num) {
304
- var t = num.toString();
305
- var suffix = "th";
306
- if (t.length === 1 || t[t.length - 2] !== "1") {
307
- switch(t[t.length - 1]){
308
- case "1":
309
- suffix = "st";
310
- break;
311
- case "2":
312
- suffix = "nd";
313
- break;
314
- case "3":
315
- suffix = "rd";
316
- break;
317
- }
318
- }
319
- return t + suffix;
304
+ var suffixes = [
305
+ "th",
306
+ "st",
307
+ "nd",
308
+ "rd"
309
+ ];
310
+ return num.toString() + (suffixes[(num % 100 - 20) % 10] || suffixes[num % 10] || suffixes[0]);
320
311
  }
321
312
  },
322
313
  {
@@ -3888,9 +3879,15 @@ var _jDate = /*#__PURE__*/ function() {
3888
3879
  * Returns the current Jewish date in the format: Thursday, the 3rd of Kislev 5776.
3889
3880
  * @param {boolean} hideDayOfWeek
3890
3881
  * @param {boolean} dontCapitalize
3882
+ * @param {boolean} showParsha Show the parsha name?
3883
+ * @param {boolean} israel Use the Israeli calendar for determining the parsha?
3891
3884
  */ key: "toString",
3892
- value: function toString(hideDayOfWeek, dontCapitalize) {
3893
- return (hideDayOfWeek ? dontCapitalize ? "t" : "T" : DaysOfWeekEng[this.getDayOfWeek()] + ", t") + "he " + Utils.toSuffixed(this.Day) + " of " + this.monthName();
3885
+ value: function toString(hideDayOfWeek, dontCapitalize, showParsha, israel2) {
3886
+ var sedra = this.getSedra(!!israel2);
3887
+ var parshas = showParsha && (sedra === null || sedra === void 0 ? void 0 : sedra.sedras.length) > 0 ? " of Parshas ".concat(sedra.toString()) : "";
3888
+ var dayOfWeek = !hideDayOfWeek ? "".concat(DaysOfWeekEng[this.getDayOfWeek()]).concat(parshas, ", ") : "";
3889
+ var prefix = dontCapitalize || !hideDayOfWeek ? "the " : "The ";
3890
+ return "".concat(dayOfWeek).concat(prefix).concat(Utils.toSuffixed(this.Day), " of ").concat(this.monthName());
3894
3891
  }
3895
3892
  },
3896
3893
  {
@@ -3914,11 +3911,17 @@ var _jDate = /*#__PURE__*/ function() {
3914
3911
  },
3915
3912
  {
3916
3913
  /**
3917
- * Returns the current Jewish date in the format: יום חמישי כ"א כסלו תשע"ו
3914
+ * Returns the current Jewish date in the format: יום חמישי כ"א כסלו תשע"ו or יום חמישי לפרשת וישב, כ"א כסלו תשע"ו
3918
3915
  * @param hideDayOfWeek When set to truthy, hides the day of the week
3916
+ * @param showParsha When set to truthy, shows the parsha
3917
+ * @param israel When set to truthy, uses the Israeli Calendar for ascertaining the parsha
3919
3918
  */ key: "toStringHeb",
3920
- value: function toStringHeb(hideDayOfWeek) {
3921
- return (!hideDayOfWeek ? DaysOfWeekHeb[this.getDayOfWeek()] + " " : "") + Utils.toJewishNumber(this.Day) + " " + JewishMonthsHeb[this.Month] + (this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " \u05E8\u05D0\u05E9\u05D5\u05DF " : " ") + Utils.toJewishNumber(this.Year % 1e3);
3919
+ value: function toStringHeb(hideDayOfWeek, showParsha, israel2) {
3920
+ var dayOfWeek = !hideDayOfWeek ? "".concat(DaysOfWeekHeb[this.getDayOfWeek()], " ") : "";
3921
+ var sedra = this.getSedra(!!israel2);
3922
+ var parsha = showParsha && (sedra === null || sedra === void 0 ? void 0 : sedra.sedras.length) > 0 ? "לפרשת ".concat(sedra.toStringHeb(), ", ") : "";
3923
+ var monthAdar = "".concat(JewishMonthsHeb[this.Month]).concat(this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " \u05E8\u05D0\u05E9\u05D5\u05DF " : " ");
3924
+ return "".concat(dayOfWeek).concat(parsha).concat(Utils.toJewishNumber(this.Day), " ").concat(monthAdar).concat(Utils.toJewishNumber(this.Year % 1e3));
3922
3925
  }
3923
3926
  },
3924
3927
  {
@@ -13537,7 +13540,7 @@ var _ZmanimUtils = /*#__PURE__*/ function() {
13537
13540
  }
13538
13541
  break;
13539
13542
  case ZmanTypeIds.SofZmanEatingChometz:
13540
- if (shaaZmanisMga && jdate.Month === 1 && jdate.Day === 14 && Utils.isTimeAfter(sunrise, Utils.timeFromDate(date))) {
13543
+ if (shaaZmanisMga && jdate.Month === 1 && jdate.Day === 14) {
13541
13544
  zmanTimes.push({
13542
13545
  zmanType: zmanType,
13543
13546
  time: Utils.addMinutes(sunrise, -90 + offset + shaaZmanisMga * 4)
@@ -13545,7 +13548,7 @@ var _ZmanimUtils = /*#__PURE__*/ function() {
13545
13548
  }
13546
13549
  break;
13547
13550
  case ZmanTypeIds.SofZmanBurnChometz:
13548
- if (shaaZmanisMga && jdate.Month === 1 && (jdate.Day === 14 || jdate.DayOfWeek === DaysOfWeek.FRIDAY && jdate.Day === 13) && Utils.isTimeAfter(sunrise, Utils.timeFromDate(date))) {
13551
+ if (shaaZmanisMga && jdate.Month === 1 && (jdate.Day === 14 && jdate.DayOfWeek !== DaysOfWeek.SHABBOS || jdate.DayOfWeek === DaysOfWeek.FRIDAY && jdate.Day === 13)) {
13549
13552
  zmanTimes.push({
13550
13553
  zmanType: zmanType,
13551
13554
  time: Utils.addMinutes(sunrise, -90 + offset + shaaZmanisMga * 5)
@@ -13834,9 +13837,28 @@ function getAroundTheYearNotifications() {
13834
13837
  if (dow !== DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
13835
13838
  addTefillahNote("Vesain Bracha", "\u05D5\u05EA\u05DF \u05D1\u05E8\u05DB\u05D4");
13836
13839
  }
13840
+ if (!isNightTime && (dow !== DaysOfWeek.THURSDAY && day === 13 || dow === DaysOfWeek.WEDNESDAY && day === 12)) {
13841
+ addDayNote("Bedikas Chometz Tonight", "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D7\u05DE\u05E5 \u05D1\u05E2\u05E8\u05D1");
13842
+ }
13837
13843
  if (isNightTime && (dow !== DaysOfWeek.FRIDAY && day === 14 || dow === DaysOfWeek.THURSDAY && day === 13)) {
13838
13844
  addDayNote("Bedikas Chometz", "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D7\u05DE\u05E5");
13839
13845
  }
13846
+ if (day === 14) {
13847
+ var eatingZman = ZmanimUtils.getZmanTimes([
13848
+ getZmanType(ZmanTypeIds.SofZmanEatingChometz)
13849
+ ], sdate, jdate, location)[0];
13850
+ if (eatingZman && eatingZman.time) {
13851
+ addDayNote("Sof Zman Eating Chometz: ".concat(Utils.getTimeString(eatingZman.time)), "סוף זמן אכילת חמץ: ".concat(Utils.getTimeString(eatingZman.time)));
13852
+ }
13853
+ }
13854
+ if (day === 14 && dow !== DaysOfWeek.SHABBOS || day === 13 && dow === DaysOfWeek.FRIDAY) {
13855
+ var burnZman = ZmanimUtils.getZmanTimes([
13856
+ getZmanType(ZmanTypeIds.SofZmanBurnChometz)
13857
+ ], sdate, jdate, location)[0];
13858
+ if (burnZman && burnZman.time) {
13859
+ addDayNote("Sof Zman Burn Chometz: ".concat(Utils.getTimeString(burnZman.time)), "סוף זמן ביעור חמץ: ".concat(Utils.getTimeString(burnZman.time)));
13860
+ }
13861
+ }
13840
13862
  if (isMorning && dow !== DaysOfWeek.SHABBOS && [
13841
13863
  14,
13842
13864
  16,
@@ -14012,8 +14034,8 @@ function getAroundTheYearNotifications() {
14012
14034
  break;
14013
14035
  case JewishMonthsNames.TAMUZ:
14014
14036
  if (isDaytime && (day === 17 && DaysOfWeek.SHABBOS !== 6 || day === 18 && dow === DaysOfWeek.SUNDAY)) {
14037
+ addDayNote("Shiva Asar B`Tamuz", '\u05D9"\u05D6 \u05D1\u05EA\u05DE\u05D5\u05D6');
14015
14038
  if (isDaytime) {
14016
- addDayNote("Shiva Asar B`Tamuz", '\u05D9"\u05D6 \u05D1\u05EA\u05DE\u05D5\u05D6');
14017
14039
  addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
14018
14040
  addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14019
14041
  }
@@ -14119,8 +14141,8 @@ function getAroundTheYearNotifications() {
14119
14141
  break;
14120
14142
  case 3:
14121
14143
  if (dow !== DaysOfWeek.SHABBOS) {
14144
+ addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
14122
14145
  if (isDaytime) {
14123
- addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
14124
14146
  addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14125
14147
  }
14126
14148
  if (isAfterChatzosHalayla || isMorning) {
@@ -14131,8 +14153,8 @@ function getAroundTheYearNotifications() {
14131
14153
  break;
14132
14154
  case 4:
14133
14155
  if (dow === DaysOfWeek.SUNDAY) {
14156
+ addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
14134
14157
  if (isDaytime) {
14135
- addDayNote("Fast of Tzom Gedalya", "\u05E6\u05D5\u05DD \u05D2\u05D3\u05DC\u05D9\u05D4");
14136
14158
  addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14137
14159
  }
14138
14160
  if (isAfterChatzosHalayla || isMorning) {
@@ -14378,13 +14400,15 @@ function getAroundTheYearNotifications() {
14378
14400
  }
14379
14401
  }
14380
14402
  }
14381
- } else if (day === 10 && isDaytime) {
14403
+ } else if (day === 10) {
14382
14404
  addDayNote("Fast of Asara B`Teves", "\u05E2\u05E9\u05E8\u05D4 \u05D1\u05D8\u05D1\u05EA");
14383
14405
  if (isMorning) {
14384
14406
  addTefillahNote("Selichos", "\u05E1\u05DC\u05D9\u05D7\u05D5\u05EA");
14385
14407
  }
14386
- addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
14387
- addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14408
+ if (isDaytime) {
14409
+ addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
14410
+ addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14411
+ }
14388
14412
  }
14389
14413
  break;
14390
14414
  case JewishMonthsNames.SHVAT:
@@ -14412,12 +14436,14 @@ function getAroundTheYearNotifications() {
14412
14436
  }
14413
14437
  } else {
14414
14438
  if (isDaytime && (day === 11 && dow === DaysOfWeek.THURSDAY || day === 13 && dow !== DaysOfWeek.SHABBOS)) {
14439
+ addDayNote("Fast of Ta`anis Esther", "\u05EA\u05E2\u05E0\u05D9\u05EA \u05D0\u05E1\u05EA\u05E8");
14415
14440
  if (isMorning) {
14416
- addDayNote("Fast of Ta`anis Esther", "\u05EA\u05E2\u05E0\u05D9\u05EA \u05D0\u05E1\u05EA\u05E8");
14417
14441
  addTefillahNote("Selichos", "\u05E1\u05DC\u05D9\u05D7\u05D5\u05EA");
14418
14442
  }
14419
- addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
14420
- addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14443
+ if (isDaytime) {
14444
+ addTefillahNote("Avinu Malkeinu", "\u05D0\u05D1\u05D9\u05E0\u05D5 \u05DE\u05DC\u05DB\u05E0\u05D5");
14445
+ addTefillahNote("Aneinu", "\u05E2\u05E0\u05E0\u05D5");
14446
+ }
14421
14447
  } else {
14422
14448
  var isYerushalayim = location.Name === "Jerusalem" || location.NameHebrew === "\u05D9\u05E8\u05D5\u05E9\u05DC\u05D9\u05DD";
14423
14449
  if (day === 14) {