@hebcal/core 6.0.7 → 6.1.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 (162) hide show
  1. package/dist/DailyLearning.d.ts +1 -1
  2. package/dist/HolidayEvent.d.ts +1 -0
  3. package/dist/ashkenazi.po.d.ts +14 -2
  4. package/dist/bundle.js +2086 -1536
  5. package/dist/bundle.js.map +1 -1
  6. package/dist/bundle.min.js +17 -19
  7. package/dist/bundle.min.js.map +1 -1
  8. package/dist/coverage/block-navigation.d.ts +1 -0
  9. package/dist/coverage/block-navigation.js +70 -0
  10. package/dist/coverage/prettify.d.ts +0 -0
  11. package/dist/coverage/prettify.js +477 -0
  12. package/dist/coverage/sorter.d.ts +1 -0
  13. package/dist/coverage/sorter.js +176 -0
  14. package/dist/eslint.config.d.mts +83 -0
  15. package/dist/eslint.config.mjs +28 -0
  16. package/dist/esm/DailyLearning.d.ts +1 -1
  17. package/dist/esm/DailyLearning.js +1 -1
  18. package/dist/esm/DailyLearning.js.map +1 -1
  19. package/dist/esm/HebrewDateEvent.js +5 -5
  20. package/dist/esm/HebrewDateEvent.js.map +1 -1
  21. package/dist/esm/HolidayEvent.d.ts +1 -0
  22. package/dist/esm/HolidayEvent.js +17 -1
  23. package/dist/esm/HolidayEvent.js.map +1 -1
  24. package/dist/esm/MevarchimChodeshEvent.js +2 -1
  25. package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
  26. package/dist/esm/ParshaEvent.js +2 -1
  27. package/dist/esm/ParshaEvent.js.map +1 -1
  28. package/dist/esm/TimedEvent.js +9 -3
  29. package/dist/esm/TimedEvent.js.map +1 -1
  30. package/dist/esm/YomKippurKatanEvent.js +2 -1
  31. package/dist/esm/YomKippurKatanEvent.js.map +1 -1
  32. package/dist/esm/ashkenazi.po.d.ts +14 -2
  33. package/dist/esm/ashkenazi.po.js +2 -2
  34. package/dist/esm/ashkenazi.po.js.map +1 -1
  35. package/dist/esm/calendar.js +6 -8
  36. package/dist/esm/calendar.js.map +1 -1
  37. package/dist/esm/candles.js +11 -3
  38. package/dist/esm/candles.js.map +1 -1
  39. package/dist/esm/event.js +18 -1
  40. package/dist/esm/event.js.map +1 -1
  41. package/dist/esm/getStartAndEnd.js +2 -2
  42. package/dist/esm/getStartAndEnd.js.map +1 -1
  43. package/dist/esm/hallel.js +1 -1
  44. package/dist/esm/he-x-NoNikud.po.d.ts +1 -0
  45. package/dist/esm/he-x-NoNikud.po.js +2 -2
  46. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  47. package/dist/esm/he.po.d.ts +20 -0
  48. package/dist/esm/he.po.js +2 -2
  49. package/dist/esm/he.po.js.map +1 -1
  50. package/dist/esm/hebcal.js +3 -3
  51. package/dist/esm/hebcal.js.map +1 -1
  52. package/dist/esm/holidays.js +3 -3
  53. package/dist/esm/holidays.js.map +1 -1
  54. package/dist/esm/index.d.ts +2 -0
  55. package/dist/esm/index.js +3 -1
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/isAssurBemlacha.js +1 -1
  58. package/dist/esm/locale.d.ts +1 -2
  59. package/dist/esm/locale.js +1 -1
  60. package/dist/esm/locale.js.map +1 -1
  61. package/dist/esm/location.js +7 -1
  62. package/dist/esm/location.js.map +1 -1
  63. package/dist/esm/modern.js +1 -1
  64. package/dist/esm/molad.d.ts +71 -1
  65. package/dist/esm/molad.js +113 -12
  66. package/dist/esm/molad.js.map +1 -1
  67. package/dist/esm/moladBase.d.ts +15 -0
  68. package/dist/esm/moladBase.js +83 -0
  69. package/dist/esm/moladBase.js.map +1 -0
  70. package/dist/esm/moladDate.d.ts +12 -0
  71. package/dist/esm/moladDate.js +63 -0
  72. package/dist/esm/moladDate.js.map +1 -0
  73. package/dist/esm/omer.d.ts +0 -1
  74. package/dist/esm/omer.js +7 -4
  75. package/dist/esm/omer.js.map +1 -1
  76. package/dist/esm/parshaName.js +2 -2
  77. package/dist/esm/parshaName.js.map +1 -1
  78. package/dist/esm/parshaYear.js +1 -1
  79. package/dist/esm/pkgVersion.d.ts +1 -1
  80. package/dist/esm/pkgVersion.js +2 -2
  81. package/dist/esm/pkgVersion.js.map +1 -1
  82. package/dist/esm/reformatTimeStr.js +5 -6
  83. package/dist/esm/reformatTimeStr.js.map +1 -1
  84. package/dist/esm/sedra.js +13 -7
  85. package/dist/esm/sedra.js.map +1 -1
  86. package/dist/esm/staticHolidays.js +1 -1
  87. package/dist/esm/tachanun.js +4 -4
  88. package/dist/esm/tachanun.js.map +1 -1
  89. package/dist/esm/zmanim.d.ts +114 -1
  90. package/dist/esm/zmanim.js +242 -8
  91. package/dist/esm/zmanim.js.map +1 -1
  92. package/dist/he-x-NoNikud.po.d.ts +1 -0
  93. package/dist/he.po.d.ts +20 -0
  94. package/dist/index.d.ts +2 -0
  95. package/dist/locale.d.ts +1 -2
  96. package/dist/molad.d.ts +71 -1
  97. package/dist/moladBase.d.ts +15 -0
  98. package/dist/moladDate.d.ts +12 -0
  99. package/dist/omer.d.ts +0 -1
  100. package/dist/pkgVersion.d.ts +1 -1
  101. package/dist/po2json.js +3 -4
  102. package/dist/src/DailyLearning.d.ts +1 -1
  103. package/dist/src/HebrewDateEvent.js +4 -4
  104. package/dist/src/HolidayEvent.d.ts +1 -0
  105. package/dist/src/HolidayEvent.js +16 -0
  106. package/dist/src/MevarchimChodeshEvent.js +1 -0
  107. package/dist/src/ParshaEvent.js +1 -0
  108. package/dist/src/TimedEvent.js +8 -2
  109. package/dist/src/YomKippurKatanEvent.js +1 -0
  110. package/dist/src/ashkenazi.po.d.ts +14 -2
  111. package/dist/src/ashkenazi.po.js +1 -1
  112. package/dist/src/calendar.js +5 -7
  113. package/dist/src/candles.js +10 -2
  114. package/dist/src/event.js +17 -0
  115. package/dist/src/getStartAndEnd.js +1 -1
  116. package/dist/src/he-x-NoNikud.po.d.ts +1 -0
  117. package/dist/src/he-x-NoNikud.po.js +1 -1
  118. package/dist/src/he.po.d.ts +20 -0
  119. package/dist/src/he.po.js +1 -1
  120. package/dist/src/hebcal.js +2 -2
  121. package/dist/src/holidays.js +2 -2
  122. package/dist/src/index.d.ts +2 -0
  123. package/dist/src/index.js +2 -0
  124. package/dist/src/locale.d.ts +1 -2
  125. package/dist/src/locale.js +1 -1
  126. package/dist/src/location.js +6 -0
  127. package/dist/src/molad.d.ts +71 -1
  128. package/dist/src/molad.js +112 -11
  129. package/dist/src/moladBase.d.ts +15 -0
  130. package/dist/src/moladBase.js +78 -0
  131. package/dist/src/moladDate.d.ts +12 -0
  132. package/dist/src/moladDate.js +58 -0
  133. package/dist/src/omer.d.ts +0 -1
  134. package/dist/src/omer.js +6 -3
  135. package/dist/src/parshaName.js +1 -1
  136. package/dist/src/pkgVersion.d.ts +1 -1
  137. package/dist/src/pkgVersion.js +1 -1
  138. package/dist/src/reformatTimeStr.js +4 -5
  139. package/dist/src/sedra.js +12 -6
  140. package/dist/src/tachanun.js +3 -3
  141. package/dist/src/zmanim.d.ts +114 -1
  142. package/dist/src/zmanim.js +240 -6
  143. package/dist/version.js +1 -2
  144. package/dist/zmanim.d.ts +114 -1
  145. package/package.json +17 -19
  146. package/dist/size-demo/dist/getHoliday.d.ts +0 -1944
  147. package/dist/size-demo/dist/getHoliday.js +0 -3712
  148. package/dist/size-demo/dist/parshiyot.js +0 -10662
  149. package/dist/size-demo/dist/sedra.d.ts +0 -1411
  150. package/dist/size-demo/dist/sedra.js +0 -2359
  151. package/dist/size-demo/dist/tachanun.d.ts +0 -1015
  152. package/dist/size-demo/dist/tachanun.js +0 -1755
  153. package/dist/size-demo/getHoliday.d.ts +0 -1
  154. package/dist/size-demo/getHoliday.js +0 -3
  155. package/dist/size-demo/parshiyot.d.ts +0 -1
  156. package/dist/size-demo/parshiyot.js +0 -11
  157. package/dist/size-demo/rollup.config.d.ts +0 -3
  158. package/dist/size-demo/rollup.config.js +0 -47
  159. package/dist/size-demo/sedra.d.ts +0 -1
  160. package/dist/size-demo/sedra.js +0 -3
  161. package/dist/size-demo/tachanun.d.ts +0 -1
  162. package/dist/size-demo/tachanun.js +0 -3
@@ -1,1015 +0,0 @@
1
- declare function mod$1(x: any, y: any): number;
2
- declare function mod$1(x: any, y: any): number;
3
- declare function mod$1(x: any, y: any): number;
4
- /**
5
- * @private
6
- */
7
- declare function mod$1(x: any, y: any): number;
8
- declare function quotient(x: any, y: any): number;
9
- declare function quotient(x: any, y: any): number;
10
- declare function quotient(x: any, y: any): number;
11
- /**
12
- * @private
13
- */
14
- declare function quotient(x: any, y: any): number;
15
- declare function yearFromFixed(abs: any): number;
16
- declare function yearFromFixed(abs: any): number;
17
- declare function yearFromFixed(abs: any): number;
18
- /**
19
- * @private
20
- * @param abs - R.D. number of days
21
- */
22
- declare function yearFromFixed(abs: any): number;
23
- declare function isGregLeapYear(year: any): boolean;
24
- declare function isGregLeapYear(year: any): boolean;
25
- declare function isGregLeapYear(year: any): boolean;
26
- /**
27
- * Returns true if the Gregorian year is a leap year
28
- * @param year Gregorian year
29
- */
30
- declare function isGregLeapYear(year: any): boolean;
31
- declare function daysInGregMonth(month: any, year: any): number;
32
- declare function daysInGregMonth(month: any, year: any): number;
33
- declare function daysInGregMonth(month: any, year: any): number;
34
- /**
35
- * Number of days in the Gregorian month for given year
36
- * @param month Gregorian month (1=January, 12=December)
37
- * @param year Gregorian year
38
- */
39
- declare function daysInGregMonth(month: any, year: any): number;
40
- declare function isDate(obj: any): boolean;
41
- declare function isDate(obj: any): boolean;
42
- declare function isDate(obj: any): boolean;
43
- /**
44
- * Returns true if the object is a Javascript Date
45
- */
46
- declare function isDate(obj: any): boolean;
47
- declare function toFixed(year: any, month: any, day: any): any;
48
- declare function toFixed(year: any, month: any, day: any): any;
49
- declare function toFixed(year: any, month: any, day: any): any;
50
- /**
51
- * @private
52
- * @param year
53
- * @param month (1-12)
54
- * @param day (1-31)
55
- */
56
- declare function toFixed(year: any, month: any, day: any): any;
57
- declare function greg2abs(date: any): any;
58
- declare function greg2abs(date: any): any;
59
- declare function greg2abs(date: any): any;
60
- /**
61
- * Converts Gregorian date to absolute R.D. (Rata Die) days
62
- * @param date Gregorian date
63
- */
64
- declare function greg2abs(date: any): any;
65
- declare function abs2greg(abs: any): Date;
66
- declare function abs2greg(abs: any): Date;
67
- declare function abs2greg(abs: any): Date;
68
- /**
69
- * Converts from Rata Die (R.D. number) to Gregorian date.
70
- * See the footnote on page 384 of ``Calendrical Calculations, Part II:
71
- * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
72
- * Clamen, Software--Practice and Experience, Volume 23, Number 4
73
- * (April, 1993), pages 383-404 for an explanation.
74
- *
75
- * Note that this function returns the daytime portion of the date.
76
- * For example, the 15th of Cheshvan 5769 began at sundown on
77
- * 12 November 2008 and continues through 13 November 2008. This
78
- * function would return only the date 13 November 2008.
79
- * @param abs - R.D. number of days
80
- * @example
81
- * const abs = hebrew2abs(5769, months.CHESHVAN, 15);
82
- * const date = abs2greg(abs); // 13 November 2008
83
- * const year = date.getFullYear(); // 2008
84
- * const monthNum = date.getMonth() + 1; // 11
85
- * const day = date.getDate(); // 13
86
- */
87
- declare function abs2greg(abs: any): Date;
88
- declare function hebrewStripNikkud(str: any): any;
89
- declare function hebrewStripNikkud(str: any): any;
90
- declare function hebrewStripNikkud(str: any): any;
91
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
92
- /**
93
- * Removes niqqud from Hebrew string
94
- */
95
- declare function hebrewStripNikkud(str: any): any;
96
- declare function assertNumber(n: any, name: any): void;
97
- declare function assertNumber(n: any, name: any): void;
98
- declare function assertNumber(n: any, name: any): void;
99
- /**
100
- * @private
101
- */
102
- declare function assertNumber(n: any, name: any): void;
103
- declare function hebrew2abs(year: any, month: any, day: any): number;
104
- declare function hebrew2abs(year: any, month: any, day: any): number;
105
- declare function hebrew2abs(year: any, month: any, day: any): number;
106
- /**
107
- * Converts Hebrew date to R.D. (Rata Die) fixed days.
108
- * R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
109
- * Calendar.
110
- * @param year Hebrew year
111
- * @param month Hebrew month
112
- * @param day Hebrew date (1-30)
113
- * @example
114
- * const abs = hebrew2abs(5769, months.CHESHVAN, 15);
115
- */
116
- declare function hebrew2abs(year: any, month: any, day: any): number;
117
- declare function newYear(year: any): number;
118
- declare function newYear(year: any): number;
119
- declare function newYear(year: any): number;
120
- /**
121
- * @private
122
- */
123
- declare function newYear(year: any): number;
124
- declare function abs2hebrew(abs: any): {
125
- yy: number;
126
- mm: number;
127
- dd: number;
128
- };
129
- declare function abs2hebrew(abs: any): {
130
- yy: number;
131
- mm: number;
132
- dd: number;
133
- };
134
- declare function abs2hebrew(abs: any): {
135
- yy: number;
136
- mm: number;
137
- dd: number;
138
- };
139
- /**
140
- * Converts absolute R.D. days to Hebrew date
141
- * @param abs absolute R.D. days
142
- */
143
- declare function abs2hebrew(abs: any): {
144
- yy: number;
145
- mm: number;
146
- dd: number;
147
- };
148
- declare function isLeapYear(year: any): boolean;
149
- declare function isLeapYear(year: any): boolean;
150
- declare function isLeapYear(year: any): boolean;
151
- /**
152
- * Returns true if Hebrew year is a leap year
153
- * @param year Hebrew year
154
- */
155
- declare function isLeapYear(year: any): boolean;
156
- declare function monthsInYear(year: any): number;
157
- declare function monthsInYear(year: any): number;
158
- declare function monthsInYear(year: any): number;
159
- /**
160
- * Number of months in this Hebrew year (either 12 or 13 depending on leap year)
161
- * @param year Hebrew year
162
- */
163
- declare function monthsInYear(year: any): number;
164
- declare function daysInMonth(month: any, year: any): 30 | 29;
165
- declare function daysInMonth(month: any, year: any): 30 | 29;
166
- declare function daysInMonth(month: any, year: any): 30 | 29;
167
- /**
168
- * Number of days in Hebrew month in a given year (29 or 30)
169
- * @param month Hebrew month (e.g. months.TISHREI)
170
- * @param year Hebrew year
171
- */
172
- declare function daysInMonth(month: any, year: any): 30 | 29;
173
- declare function getMonthName(month: any, year: any): string;
174
- declare function getMonthName(month: any, year: any): string;
175
- declare function getMonthName(month: any, year: any): string;
176
- /**
177
- * Returns a transliterated string name of Hebrew month in year,
178
- * for example 'Elul' or 'Cheshvan'.
179
- * @param month Hebrew month (e.g. months.TISHREI)
180
- * @param year Hebrew year
181
- */
182
- declare function getMonthName(month: any, year: any): string;
183
- declare function elapsedDays(year: any): number;
184
- declare function elapsedDays(year: any): number;
185
- declare function elapsedDays(year: any): number;
186
- /**
187
- * Days from sunday prior to start of Hebrew calendar to mean
188
- * conjunction of Tishrei in Hebrew YEAR
189
- * @param year Hebrew year
190
- */
191
- declare function elapsedDays(year: any): number;
192
- declare function elapsedDays0(year: any): number;
193
- declare function elapsedDays0(year: any): number;
194
- declare function elapsedDays0(year: any): number;
195
- /**
196
- * Days from sunday prior to start of Hebrew calendar to mean
197
- * conjunction of Tishrei in Hebrew YEAR
198
- * @private
199
- * @param year Hebrew year
200
- */
201
- declare function elapsedDays0(year: any): number;
202
- declare function daysInYear(year: any): number;
203
- declare function daysInYear(year: any): number;
204
- declare function daysInYear(year: any): number;
205
- /**
206
- * Number of days in the hebrew YEAR.
207
- * A common Hebrew calendar year can have a length of 353, 354 or 355 days
208
- * A leap Hebrew calendar year can have a length of 383, 384 or 385 days
209
- * @param year Hebrew year
210
- */
211
- declare function daysInYear(year: any): number;
212
- declare function longCheshvan(year: any): boolean;
213
- declare function longCheshvan(year: any): boolean;
214
- declare function longCheshvan(year: any): boolean;
215
- /**
216
- * true if Cheshvan is long in Hebrew year
217
- * @param year Hebrew year
218
- */
219
- declare function longCheshvan(year: any): boolean;
220
- declare function shortKislev(year: any): boolean;
221
- declare function shortKislev(year: any): boolean;
222
- declare function shortKislev(year: any): boolean;
223
- /**
224
- * true if Kislev is short in Hebrew year
225
- * @param year Hebrew year
226
- */
227
- declare function shortKislev(year: any): boolean;
228
- declare function monthFromName(monthName: any): number;
229
- declare function monthFromName(monthName: any): number;
230
- declare function monthFromName(monthName: any): number;
231
- /**
232
- * Converts Hebrew month string name to numeric
233
- * @param monthName monthName
234
- */
235
- declare function monthFromName(monthName: any): number;
236
- declare function num2digits(num: any): number[];
237
- declare function num2digits(num: any): number[];
238
- declare function num2digits(num: any): number[];
239
- declare function num2digits(num: any): number[];
240
- declare function gematriya(num: any): string;
241
- declare function gematriya(num: any): string;
242
- declare function gematriya(num: any): string;
243
- /**
244
- * Converts a numerical value to a string of Hebrew letters.
245
- *
246
- * When specifying years of the Hebrew calendar in the present millennium,
247
- * we omit the thousands (which is presently 5 [ה]).
248
- * @example
249
- * gematriya(5774) // 'תשע״ד' - cropped to 774
250
- * gematriya(25) // 'כ״ה'
251
- * gematriya(60) // 'ס׳'
252
- * gematriya(3761) // 'ג׳תשס״א'
253
- * gematriya(1123) // 'א׳קכ״ג'
254
- */
255
- declare function gematriya(num: any): string;
256
- declare function gematriyaStrToNum(str: any): number;
257
- declare function gematriyaStrToNum(str: any): number;
258
- declare function gematriyaStrToNum(str: any): number;
259
- /**
260
- * Converts a string of Hebrew letters to a numerical value.
261
- *
262
- * Only considers the value of Hebrew letters `א` through `ת`.
263
- * Ignores final Hebrew letters such as `ך` (kaf sofit) or `ם` (mem sofit)
264
- * and vowels (nekudot).
265
- */
266
- declare function gematriyaStrToNum(str: any): number;
267
- declare function getEnOrdinal(n: any): string;
268
- declare function getEnOrdinal(n: any): string;
269
- declare function getEnOrdinal(n: any): string;
270
- /** @private */
271
- declare function getEnOrdinal(n: any): string;
272
- declare function checkLocale(locale: any): any;
273
- declare function checkLocale(locale: any): any;
274
- declare function checkLocale(locale: any): any;
275
- /** @private */
276
- declare function checkLocale(locale: any): any;
277
- declare function getExistingLocale(locale: any): any;
278
- declare function getExistingLocale(locale: any): any;
279
- declare function getExistingLocale(locale: any): any;
280
- /** @private */
281
- declare function getExistingLocale(locale: any): any;
282
- declare function mod(x: any, y: any): number;
283
- declare function mod(x: any, y: any): number;
284
- declare function mod(x: any, y: any): number;
285
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
286
- declare function mod(x: any, y: any): number;
287
- declare function isSimpleHebrewDate(obj: any): boolean;
288
- declare function isSimpleHebrewDate(obj: any): boolean;
289
- declare function isSimpleHebrewDate(obj: any): boolean;
290
- declare function isSimpleHebrewDate(obj: any): boolean;
291
- declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
292
- declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
293
- declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
294
- declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
295
- declare function getDayOfTranslation(locale: any): string;
296
- declare function getDayOfTranslation(locale: any): string;
297
- declare function getDayOfTranslation(locale: any): string;
298
- declare function getDayOfTranslation(locale: any): string;
299
- declare function setMonth(hd: any, month: any): any;
300
- declare function setMonth(hd: any, month: any): any;
301
- declare function setMonth(hd: any, month: any): any;
302
- /**
303
- * Sets the day of the month of the date. Returns the object it was called upon
304
- * @private
305
- * @param month A number, or Hebrew month name string
306
- */
307
- declare function setMonth(hd: any, month: any): any;
308
- declare function setDate(hd: any, date: any): any;
309
- declare function setDate(hd: any, date: any): any;
310
- declare function setDate(hd: any, date: any): any;
311
- declare function setDate(hd: any, date: any): any;
312
- declare function fix(hd: any): void;
313
- declare function fix(hd: any): void;
314
- declare function fix(hd: any): void;
315
- declare function fix(hd: any): void;
316
- declare function fixDate(hd: any): void;
317
- declare function fixDate(hd: any): void;
318
- declare function fixDate(hd: any): void;
319
- declare function fixDate(hd: any): void;
320
- declare function fixMonth(hd: any): void;
321
- declare function fixMonth(hd: any): void;
322
- declare function fixMonth(hd: any): void;
323
- declare function fixMonth(hd: any): void;
324
- declare function onOrBefore(day: any, t: any, offset: any): HDate;
325
- declare function onOrBefore(day: any, t: any, offset: any): HDate;
326
- declare function onOrBefore(day: any, t: any, offset: any): HDate;
327
- declare function onOrBefore(day: any, t: any, offset: any): HDate;
328
- declare function dateYomHaZikaron(year: any): HDate | null;
329
- declare function dateYomHaZikaron(year: any): HDate | null;
330
- /**
331
- * Yom HaAtzma'ut only celebrated after 1948
332
- * @private
333
- * @param year
334
- */
335
- declare function dateYomHaZikaron(year: any): HDate | null;
336
- declare function range(start: any, stop: any): any[];
337
- declare function range(start: any, stop: any): any[];
338
- declare function range(start: any, stop: any): any[];
339
- /*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
340
- declare function range(start: any, end: any): any[];
341
- /**
342
- * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
343
- *
344
- * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
345
- * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
346
- * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
347
- * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
348
- *
349
- * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
350
- * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
351
- * Yom Ha'atzmaut, and Yom Yerushalayim.
352
- *
353
- * Tachanun is not said at Mincha on days before it is not said at Shacharit.
354
- *
355
- * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
356
- */
357
- declare function tachanun(hdate: any, il: any): {
358
- shacharit: boolean;
359
- mincha: boolean;
360
- allCongs: boolean;
361
- };
362
- declare function tachanun0(hdate: any, il: any, checkNext: any): {
363
- shacharit: boolean;
364
- mincha: boolean;
365
- allCongs: boolean;
366
- };
367
- declare function tachanunYear(year: any, il: any): {
368
- none: number[];
369
- some: number[];
370
- yesPrev: number[];
371
- };
372
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
373
- /** @private */
374
- declare const lengths: number[];
375
- /** @private */
376
- declare const monthLengths: number[][];
377
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
378
- /**
379
- * Gregorian date helper functions
380
- */
381
- declare var greg: any;
382
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
383
- declare const NISAN$1: 1;
384
- declare const IYYAR$1: 2;
385
- declare const SIVAN: 3;
386
- declare const TAMUZ: 4;
387
- declare const AV: 5;
388
- declare const ELUL: 6;
389
- declare const TISHREI: 7;
390
- declare const CHESHVAN: 8;
391
- declare const KISLEV: 9;
392
- declare const TEVET: 10;
393
- declare const SHVAT: 11;
394
- declare const ADAR_I: 12;
395
- declare const ADAR_II: 13;
396
- /**
397
- * Hebrew months of the year (NISAN=1, TISHREI=7)
398
- */
399
- type months = number;
400
- declare namespace months {
401
- let NISAN: number;
402
- let IYYAR: number;
403
- let SIVAN: number;
404
- let AV: number;
405
- let ELUL: number;
406
- let TISHREI: number;
407
- let KISLEV: number;
408
- let SHVAT: number;
409
- let ADAR_I: number;
410
- let ADAR_II: number;
411
- }
412
- declare const NISAN_STR: "Nisan";
413
- declare const monthNames0: string[];
414
- declare const monthNames: string[][];
415
- declare const edCache: Map<any, any>;
416
- declare const EPOCH: -1373428;
417
- declare const AVG_HEBYEAR_DAYS: 365.24682220597794;
418
- /*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
419
- declare const GERESH: "\u05F3";
420
- declare const GERSHAYIM: "\u05F4";
421
- declare namespace heb2num {
422
- let א: number;
423
- let ב: number;
424
- let ג: number;
425
- let ד: number;
426
- let ה: number;
427
- let ו: number;
428
- let ז: number;
429
- let ח: number;
430
- let ט: number;
431
- let י: number;
432
- let כ: number;
433
- let ל: number;
434
- let מ: number;
435
- let נ: number;
436
- let ס: number;
437
- let ע: number;
438
- let פ: number;
439
- let צ: number;
440
- let ק: number;
441
- let ר: number;
442
- let ש: number;
443
- let ת: number;
444
- }
445
- declare const num2heb: {};
446
- declare namespace poAshkenazi {
447
- let headers: {
448
- "plural-forms": string;
449
- language: string;
450
- };
451
- let contexts: {
452
- "": {
453
- Tevet: string[];
454
- };
455
- };
456
- }
457
- declare namespace poHe {
458
- let headers_1: {
459
- "plural-forms": string;
460
- language: string;
461
- };
462
- export { headers_1 as headers };
463
- let contexts_1: {
464
- "": {
465
- Adar: string[];
466
- "Adar I": string[];
467
- "Adar II": string[];
468
- Av: string[];
469
- Cheshvan: string[];
470
- Elul: string[];
471
- Iyyar: string[];
472
- Kislev: string[];
473
- Nisan: string[];
474
- "Sh'vat": string[];
475
- Sivan: string[];
476
- Tamuz: string[];
477
- Tevet: string[];
478
- Tishrei: string[];
479
- };
480
- };
481
- export { contexts_1 as contexts };
482
- }
483
- declare namespace noopLocale {
484
- let headers_2: {
485
- 'plural-forms': string;
486
- };
487
- export { headers_2 as headers };
488
- let contexts_2: {
489
- '': {};
490
- };
491
- export { contexts_2 as contexts };
492
- }
493
- declare const alias: {
494
- h: string;
495
- a: string;
496
- s: string;
497
- '': string;
498
- };
499
- /** @private */
500
- declare const locales: Map<any, any>;
501
- /**
502
- * A locale in Hebcal is used for translations/transliterations of
503
- * holidays. `@hebcal/hdate` supports four locales by default
504
- * * `en` - default, Sephardic transliterations (e.g. "Shabbat")
505
- * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
506
- * * `he` - Hebrew (e.g. "שַׁבָּת")
507
- * * `he-x-NoNikud` - Hebrew without nikud (e.g. "שבת")
508
- */
509
- declare class Locale {
510
- /**
511
- * Returns translation only if `locale` offers a non-empty translation for `id`.
512
- * Otherwise, returns `undefined`.
513
- * @param id Message ID to translate
514
- * @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
515
- */
516
- static lookupTranslation(id: any, locale?: any): any;
517
- /**
518
- * By default, if no translation was found, returns `id`.
519
- * @param id Message ID to translate
520
- * @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
521
- */
522
- static gettext(id: any, locale?: any): any;
523
- /**
524
- * Register locale translations.
525
- * @param locale Locale name (i.e.: `'he'`, `'fr'`)
526
- * @param data parsed data from a `.po` file.
527
- */
528
- static addLocale(locale: any, data: any): void;
529
- /**
530
- * Adds a translation to `locale`, replacing any previous translation.
531
- * @param locale Locale name (i.e: `'he'`, `'fr'`).
532
- * @param id Message ID to translate
533
- * @param translation Translation text
534
- */
535
- static addTranslation(locale: any, id: any, translation: any): void;
536
- /**
537
- * Adds multiple translations to `locale`, replacing any previous translations.
538
- * @param locale Locale name (i.e: `'he'`, `'fr'`).
539
- * @param data parsed data from a `.po` file.
540
- */
541
- static addTranslations(locale: any, data: any): void;
542
- /**
543
- * Returns the names of registered locales
544
- */
545
- static getLocaleNames(): any[];
546
- /**
547
- * Checks whether a locale has been registered
548
- * @param locale Locale name (i.e: `'he'`, `'fr'`).
549
- */
550
- static hasLocale(locale: any): boolean;
551
- /**
552
- * Renders a number in ordinal, such as 1st, 2nd or 3rd
553
- * @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
554
- */
555
- static ordinal(n: any, locale?: any): string;
556
- /**
557
- * Removes nekudot from Hebrew string
558
- */
559
- static hebrewStripNikkud(str: any): any;
560
- /**
561
- * Makes a copy of entire Hebrew locale with no niqqud
562
- */
563
- static copyLocaleNoNikud(data: any): {
564
- headers: any;
565
- contexts: {
566
- '': {};
567
- };
568
- };
569
- }
570
- declare const poHeNoNikud: {
571
- headers: any;
572
- contexts: {
573
- '': {};
574
- };
575
- };
576
- declare const UNITS_DAY: "day";
577
- declare const UNITS_WEEK: "week";
578
- declare const UNITS_MONTH: "month";
579
- declare const UNITS_YEAR: "year";
580
- /**
581
- * A `HDate` represents a Hebrew calendar date.
582
- *
583
- * An instance of this class encapsulates a date in the Hebrew calendar system.
584
- * It consists of a year, month, and day, without any associated time or location data.
585
- * The Hebrew calendar is a lunisolar calendar, meaning it is based on both lunar and solar cycles.
586
- *
587
- * A Hebrew date internally stores three numbers:
588
- * - year: The Hebrew year (1-9999). Counted from the traditional Hebrew date of creation (3761 BCE in the Gregorian calendar)
589
- * - month: The Hebrew month (1-13). Month 1 is Nisan, month 7 is Tishrei. There are 12 months in a regular year and 13 months in a leap year.
590
- * - day: The day of the month (1-30)
591
- *
592
- * This class uses Rata Die to convert between the Hebrew and Gregorian calendars.
593
- *
594
- * To calculate times of day, use `Zmanim` class from `@hebcal/core`
595
- * @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
596
- * @see {@link https://hebcal.github.io/api/core/classes/Zmanim.html | Zmanim}
597
- */
598
- declare class HDate {
599
- /**
600
- * Converts Hebrew date to R.D. (Rata Die) fixed days.
601
- * R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
602
- * Calendar.
603
- * @param year Hebrew year
604
- * @param month Hebrew month (1=NISAN, 7=TISHREI)
605
- * @param day Hebrew date (1-30)
606
- * @example
607
- * import {HDate, months} from '@hebcal/hdate';
608
- * HDate.hebrew2abs(5769, months.CHESHVAN, 15); // 733359
609
- */
610
- static hebrew2abs(year: any, month: any, day: any): number;
611
- /**
612
- * Returns true if Hebrew year is a leap year
613
- * @param year Hebrew year
614
- * @example
615
- * HDate.isLeapYear(5783); // false
616
- * HDate.isLeapYear(5784); // true
617
- */
618
- static isLeapYear(year: any): boolean;
619
- /**
620
- * Number of months in this Hebrew year (either 12 or 13 depending on leap year)
621
- * @param year Hebrew year
622
- * @example
623
- * HDate.monthsInYear(5783); // 12
624
- * HDate.monthsInYear(5784); // 13
625
- */
626
- static monthsInYear(year: any): number;
627
- /**
628
- * Number of days in Hebrew month in a given year (29 or 30)
629
- * @param month Hebrew month (e.g. months.TISHREI)
630
- * @param year Hebrew year
631
- * @example
632
- * import {HDate, months} from '@hebcal/hdate';
633
- * HDate.daysInMonth(months.CHESHVAN, 5769); // 29
634
- */
635
- static daysInMonth(month: any, year: any): 30 | 29;
636
- /**
637
- * Returns a transliterated string name of Hebrew month in year,
638
- * for example 'Elul' or 'Cheshvan'.
639
- * @param month Hebrew month (e.g. months.TISHREI)
640
- * @param year Hebrew year
641
- * @example
642
- * import {HDate, months} from '@hebcal/hdate';
643
- * HDate.getMonthName(months.CHESHVAN, 5769); // 'Cheshvan'
644
- */
645
- static getMonthName(month: any, year: any): string;
646
- /**
647
- * Returns the Hebrew month number (NISAN=1, TISHREI=7)
648
- * @param month A number, or Hebrew month name string
649
- * @example
650
- * import {HDate, months} from '@hebcal/hdate';
651
- * HDate.monthNum(months.CHESHVAN); // 8
652
- * HDate.monthNum('Cheshvan'); // 8
653
- * HDate.monthNum('חשון'); // 8
654
- */
655
- static monthNum(month: any): number;
656
- /**
657
- * Number of days in the Hebrew year.
658
- * Regular years can have 353, 354, or 355 days.
659
- * Leap years can have 383, 384, or 385 days.
660
- * @param year Hebrew year
661
- * @example
662
- * HDate.daysInYear(5783); // 355
663
- * HDate.daysInYear(5784); // 383
664
- */
665
- static daysInYear(year: any): number;
666
- /**
667
- * true if Cheshvan is long in Hebrew year
668
- * @param year Hebrew year
669
- * @example
670
- * HDate.longCheshvan(5783); // true
671
- * HDate.longCheshvan(5784); // false
672
- */
673
- static longCheshvan(year: any): boolean;
674
- /**
675
- * true if Kislev is short in Hebrew year
676
- * @param year Hebrew year
677
- * @example
678
- * HDate.shortKislev(5783); // false
679
- * HDate.shortKislev(5784); // true
680
- */
681
- static shortKislev(year: any): boolean;
682
- /**
683
- * Converts Hebrew month string name to numeric
684
- * @example
685
- * import {HDate, months} from '@hebcal/hdate';
686
- * HDate.monthFromName(months.CHESHVAN); // 8
687
- * HDate.monthFromName('Cheshvan'); // 8
688
- * HDate.monthFromName('חשון'); // 8
689
- */
690
- static monthFromName(monthName: any): number;
691
- /**
692
- * Convenience function for determining the R.D. date
693
- * near a specified R.D. date, corresponding to the specified day of week.
694
- *
695
- * Note: Applying this function to d+6 gives us the `dayOfWeek` on or after an
696
- * absolute day d. Similarly, applying it to d+3 gives the `dayOfWeek` nearest to
697
- * absolute date d, applying it to d-1 gives the `dayOfWeek` previous to absolute
698
- * date d, and applying it to d+7 gives the `dayOfWeek` following absolute date d.
699
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
700
- */
701
- static dayOnOrBefore(dayOfWeek: any, absdate: any): number;
702
- /**
703
- * Tests if the object is an instance of `HDate`
704
- * @example
705
- * HDate.isHDate(new HDate()); // true
706
- * HDate.isHDate(new Date()); // false
707
- * HDate.isHDate(null); // false
708
- * HDate.isHDate(12345); // false
709
- * HDate.isHDate('15 Cheshvan 5769'); // false
710
- */
711
- static isHDate(obj: any): boolean;
712
- /**
713
- * Construct a new instance of `HDate` from a Gematriya-formatted string
714
- * @example
715
- * HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
716
- * HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
717
- * HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708
718
- */
719
- static fromGematriyaString(str: any, currentThousands?: number): HDate;
720
- /**
721
- * Create a Hebrew date. There are 3 basic forms for the `HDate()` constructor.
722
- *
723
- * 1. No parameters - represents the current Hebrew date at time of instantiation
724
- * 2. One parameter
725
- * * `Date` - represents the Hebrew date corresponding to the Gregorian date using
726
- * local time. Hours, minutes, seconds and milliseconds are ignored.
727
- * * `HDate` - clones a copy of the given Hebrew date
728
- * * `number` - Converts absolute R.D. days to Hebrew date.
729
- * R.D. 1 == the imaginary date January 1, 1 (Gregorian)
730
- * 3. Three parameters: Hebrew day, Hebrew month, Hebrew year. Hebrew day should
731
- * be a number between 1-30, Hebrew month can be a number or string, and
732
- * Hebrew year is always a number.
733
- * @example
734
- * import {HDate, months} from '@hebcal/hdate';
735
- *
736
- * const hd1 = new HDate();
737
- * const hd2 = new HDate(new Date(2008, 10, 13));
738
- * const hd3 = new HDate(15, 'Cheshvan', 5769);
739
- * const hd4 = new HDate(15, months.CHESHVAN, 5769);
740
- * const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
741
- * const monthName = 'אייר';
742
- * const hd6 = new HDate(5, monthName, 5773);
743
- * @param [day] - Day of month (1-30) if a `number`.
744
- * If a `Date` is specified, represents the Hebrew date corresponding to the
745
- * Gregorian date using local time.
746
- * If an `HDate` is specified, clones a copy of the given Hebrew date.
747
- * @param [month] - Hebrew month of year (1=NISAN, 7=TISHREI)
748
- * @param [year] - Hebrew year
749
- */
750
- constructor(day?: any, month?: any, year?: any, ...args: any[]);
751
- dd: any;
752
- mm: any;
753
- yy: any;
754
- rd: number | undefined;
755
- /**
756
- * Returns the Hebrew year of this Hebrew date
757
- * @returns an integer >= 1
758
- * @example
759
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
760
- * hd.getFullYear(); // 5769
761
- */
762
- getFullYear(): any;
763
- /**
764
- * Returns `true` if this Hebrew date occurs during a Hebrew leap year
765
- * @example
766
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
767
- * hd.isLeapYear(); // false
768
- */
769
- isLeapYear(): boolean;
770
- /**
771
- * Returns the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date
772
- * @returns an integer 1-13
773
- * @example
774
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
775
- * hd.getMonth(); // 8
776
- */
777
- getMonth(): any;
778
- /**
779
- * The Tishrei-based month of this Hebrew date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year
780
- * @returns an integer 1-13
781
- * @example
782
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
783
- * hd.getTishreiMonth(); // 2
784
- */
785
- getTishreiMonth(): number;
786
- /**
787
- * Number of days in the month of this Hebrew date (29 or 30)
788
- * @returns an integer 29-30
789
- * @example
790
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
791
- * hd.daysInMonth(); // 29
792
- */
793
- daysInMonth(): 30 | 29;
794
- /**
795
- * Gets the day within the month (1-30)
796
- * @returns an integer 1-30
797
- * @example
798
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
799
- * hd.getDate(); // 15
800
- */
801
- getDate(): any;
802
- /**
803
- * Returns the day of the week for this Hebrew date,
804
- * where 0 represents Sunday, 1 represents Monday, 6 represents Saturday.
805
- *
806
- * For the day of the month, see `getDate()`
807
- * @returns an integer 0-6
808
- * @example
809
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
810
- * hd.getDate(); // 4
811
- */
812
- getDay(): number;
813
- /**
814
- * Converts this Hebrew date to the corresponding Gregorian date.
815
- *
816
- * The returned `Date` object will be in the local (i.e. host system) time zone.
817
- * Hours, minutes, seconds and milliseconds will all be zero.
818
- *
819
- * Note that this function returns the daytime portion of the date.
820
- * For example, the 15th of Cheshvan 5769 began at sundown on
821
- * 12 November 2008 and continues through 13 November 2008. This
822
- * function would return only the date 13 November 2008.
823
- * @example
824
- * const hd = new HDate(15, 'Cheshvan', 5769);
825
- * const date = hd.greg(); // 13 November 2008
826
- * const year = date.getFullYear(); // 2008
827
- * const monthNum = date.getMonth() + 1; // 11
828
- * const day = date.getDate(); // 13
829
- */
830
- greg(): Date;
831
- /**
832
- * Converts from Hebrew date representation to R.D. (Rata Die) fixed days.
833
- * R.D. 1 is the imaginary date Monday, January 1, 1 (Gregorian).
834
- * Note also that R.D. = Julian Date − 1,721,424.5
835
- * @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
836
- * @example
837
- * const hd = new HDate(15, 'Cheshvan', 5769);
838
- * hd.abs(); // 733359
839
- */
840
- abs(): number;
841
- /**
842
- * Returns a transliterated Hebrew month name, e.g. `'Elul'` or `'Cheshvan'`.
843
- * @example
844
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
845
- * hd.getMonthName(); // 'Cheshvan'
846
- */
847
- getMonthName(): string;
848
- /**
849
- * Renders this Hebrew date as a translated or transliterated string,
850
- * including ordinal e.g. `'15th of Cheshvan, 5769'`.
851
- * @example
852
- * import {HDate, months} from '@hebcal/hdate';
853
- *
854
- * const hd = new HDate(15, months.CHESHVAN, 5769);
855
- * console.log(hd.render('en')); // '15th of Cheshvan, 5769'
856
- * console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
857
- * console.log(hd.render('en', false)); // '15th of Cheshvan'
858
- * console.log(hd.render('he', false)); // '15 חֶשְׁוָן'
859
- * @param [locale] Optional locale name (defaults to active locale).
860
- * @param [showYear=true] Display year (defaults to true).
861
- * @see {@link Locale}
862
- */
863
- render(locale?: any, showYear?: boolean | undefined): string;
864
- /**
865
- * Renders this Hebrew date in Hebrew gematriya, regardless of locale.
866
- * @param suppressNikud - suppress nekudot (default false)
867
- * @param suppressYear - suppress Hebrew year (default false)
868
- * @example
869
- * import {HDate, months} from '@hebcal/hdate';
870
- * const hd = new HDate(15, months.CHESHVAN, 5769);
871
- * hd.renderGematriya(); // 'ט״ו חֶשְׁוָן תשס״ט'
872
- * hd.renderGematriya(true); // 'ט״ו חשון תשס״ט'
873
- * hd.renderGematriya(false, true); // 'ט״ו חֶשְׁוָן'
874
- */
875
- renderGematriya(suppressNikud?: boolean, suppressYear?: boolean): string;
876
- /**
877
- * Returns an `HDate` corresponding to the specified day of week
878
- * **before** this Hebrew date
879
- * @example
880
- * new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
881
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
882
- */
883
- before(dayOfWeek: any): HDate;
884
- /**
885
- * Returns an `HDate` corresponding to the specified day of week
886
- * **on or before** this Hebrew date
887
- * @example
888
- * new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
889
- * new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
890
- * new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
891
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
892
- */
893
- onOrBefore(dayOfWeek: any): HDate;
894
- /**
895
- * Returns an `HDate` corresponding to the specified day of week
896
- * **nearest** to this Hebrew date
897
- * @example
898
- * new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
899
- * new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014
900
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
901
- */
902
- nearest(dayOfWeek: any): HDate;
903
- /**
904
- * Returns an `HDate` corresponding to the specified day of week
905
- * **on or after** this Hebrew date
906
- * @example
907
- * new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
908
- * new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
909
- * new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014
910
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
911
- */
912
- onOrAfter(dayOfWeek: any): HDate;
913
- /**
914
- * Returns an `HDate` corresponding to the specified day of week
915
- * **after** this Hebrew date
916
- * @example
917
- * new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
918
- * new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
919
- * new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014
920
- * @param dayOfWeek day of week: Sunday=0, Saturday=6
921
- */
922
- after(dayOfWeek: any): HDate;
923
- /**
924
- * Returns the next Hebrew date
925
- * @example
926
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
927
- * hd.next(); // '16 Cheshvan 5769'
928
- */
929
- next(): HDate;
930
- /**
931
- * Returns the previous Hebrew date
932
- * @example
933
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
934
- * hd.prev(); // '14 Cheshvan 5769'
935
- */
936
- prev(): HDate;
937
- /**
938
- * Returns a cloned `HDate` object with a specified amount of time added
939
- *
940
- * Units are case insensitive, and support plural and short forms.
941
- * Note, short forms are case sensitive.
942
- *
943
- * | Unit | Shorthand | Description
944
- * | --- | --- | --- |
945
- * | `day` | `d` | days |
946
- * | `week` | `w` | weeks |
947
- * | `month` | `M` | months |
948
- * | `year` | `y` | years |
949
- */
950
- add(amount: any, units?: string): HDate;
951
- /**
952
- * Returns a cloned `HDate` object with a specified amount of time subracted
953
- *
954
- * Units are case insensitive, and support plural and short forms.
955
- * Note, short forms are case sensitive.
956
- *
957
- * | Unit | Shorthand | Description
958
- * | --- | --- | --- |
959
- * | `day` | `d` | days |
960
- * | `week` | `w` | weeks |
961
- * | `month` | `M` | months |
962
- * | `year` | `y` | years |
963
- * @example
964
- * import {HDate, months} from '@hebcal/hdate';
965
- *
966
- * const hd1 = new HDate(15, months.CHESHVAN, 5769);
967
- * const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
968
- * const hd3 = hd1.add(-3, 'M'); // 30 Av 5768
969
- */
970
- subtract(amount: any, units?: string): HDate;
971
- /**
972
- * Returns the difference in days between the two given HDates.
973
- *
974
- * The result is positive if `this` date is comes chronologically
975
- * after the `other` date, and negative
976
- * if the order of the two dates is reversed.
977
- *
978
- * The result is zero if the two dates are identical.
979
- * @example
980
- * import {HDate, months} from '@hebcal/hdate';
981
- *
982
- * const hd1 = new HDate(25, months.KISLEV, 5770);
983
- * const hd2 = new HDate(15, months.CHESHVAN, 5769);
984
- * const days = hd1.deltaDays(hd2); // 394
985
- * @param other Hebrew date to compare
986
- */
987
- deltaDays(other: any): number;
988
- /**
989
- * Compares this Hebrew date to another date, returning `true` if the dates match.
990
- * @param other Hebrew date to compare
991
- * @example
992
- * const hd1 = new HDate(new Date(2008, 10, 13));
993
- * const hd2 = new HDate(15, 'Cheshvan', 5769);
994
- * hd1.isSameDate(hd2); // true
995
- */
996
- isSameDate(other: any): boolean;
997
- /**
998
- * Returns a string representation of this Hebrew date using English transliterations
999
- * @example
1000
- * const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
1001
- * hd.toString(); // '15 Cheshvan 5769'
1002
- */
1003
- toString(): string;
1004
- }
1005
- /*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
1006
- declare const SUN: 0;
1007
- declare const TUE: 2;
1008
- declare const SAT: 6;
1009
- declare const NISAN: number;
1010
- declare const IYYAR: number;
1011
- declare namespace NONE {
1012
- let shacharit: boolean;
1013
- let mincha: boolean;
1014
- let allCongs: boolean;
1015
- }