@hebcal/core 5.4.0 → 5.4.2
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 +2 -2
- package/dist/CalOptions.d.ts +157 -0
- package/dist/DailyLearning.d.ts +3 -1
- package/dist/HebrewDateEvent.d.ts +28 -2
- package/dist/HolidayEvent.d.ts +95 -0
- package/dist/MevarchimChodeshEvent.d.ts +28 -0
- package/dist/ParshaEvent.d.ts +19 -8
- package/dist/TimedEvent.d.ts +54 -0
- package/dist/YomKippurKatanEvent.d.ts +28 -0
- package/dist/ashkenazi.po.d.ts +4 -5
- package/dist/bundle.js +4309 -5251
- package/dist/bundle.min.js +2 -2
- package/dist/candles.d.ts +15 -61
- package/dist/event.d.ts +74 -42
- package/dist/getStartAndEnd.d.ts +6 -0
- package/dist/hallel.d.ts +3 -1
- package/dist/he.po.d.ts +4 -18
- package/dist/hebcal.d.ts +21 -192
- package/dist/holidays.d.ts +3 -59
- package/dist/index.cjs +4224 -4817
- package/dist/index.d.ts +17 -15
- package/dist/index.mjs +4225 -4818
- package/dist/locale.d.ts +1 -80
- package/dist/location.d.ts +43 -41
- package/dist/modern.d.ts +3 -3
- package/dist/molad.d.ts +15 -13
- package/dist/omer.d.ts +24 -5
- package/dist/pkgVersion.d.ts +2 -1
- package/dist/reformatTimeStr.d.ts +2 -1
- package/dist/sedra.d.ts +94 -2
- package/dist/staticHolidays.d.ts +165 -201
- package/dist/tachanun.d.ts +9 -7
- package/dist/zmanim.d.ts +40 -39
- package/package.json +10 -17
- package/po/ashkenazi.po +192 -0
- package/po/he.po +889 -0
- package/dist/dateFormat.d.ts +0 -33
- package/dist/hdate.d.ts +0 -395
- package/dist/locale-ashkenazi.d.ts +0 -1
- package/dist/locale-he.d.ts +0 -1
- package/dist/staticHols.d.ts +0 -175
- package/dist/throwTypeError.d.ts +0 -5
package/dist/dateFormat.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @private
|
|
3
|
-
* @param {string} tzid
|
|
4
|
-
* @param {Date} date
|
|
5
|
-
* @return {string}
|
|
6
|
-
*/
|
|
7
|
-
export function getPseudoISO(tzid: string, date: Date): string;
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
* @param {string} tzid
|
|
11
|
-
* @param {Date} date
|
|
12
|
-
* @return {number}
|
|
13
|
-
*/
|
|
14
|
-
export function getTimezoneOffset(tzid: string, date: Date): number;
|
|
15
|
-
/**
|
|
16
|
-
* @private
|
|
17
|
-
* @param {number} number
|
|
18
|
-
* @return {string}
|
|
19
|
-
*/
|
|
20
|
-
export function pad4(number: number): string;
|
|
21
|
-
/**
|
|
22
|
-
* @private
|
|
23
|
-
* @param {number} number
|
|
24
|
-
* @return {string}
|
|
25
|
-
*/
|
|
26
|
-
export function pad2(number: number): string;
|
|
27
|
-
/**
|
|
28
|
-
* Returns YYYY-MM-DD in the local timezone
|
|
29
|
-
* @private
|
|
30
|
-
* @param {Date} dt
|
|
31
|
-
* @return {string}
|
|
32
|
-
*/
|
|
33
|
-
export function isoDateString(dt: Date): string;
|
package/dist/hdate.d.ts
DELETED
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A simple Hebrew date object with numeric fields `yy`, `mm`, and `dd`
|
|
3
|
-
* @typedef {Object} SimpleHebrewDate
|
|
4
|
-
* @property {number} yy Hebrew year
|
|
5
|
-
* @property {number} mm Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
6
|
-
* @property {number} dd Day of month (1-30)
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
/** Represents a Hebrew date */
|
|
10
|
-
export class HDate {
|
|
11
|
-
/**
|
|
12
|
-
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
13
|
-
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
14
|
-
* Calendar.
|
|
15
|
-
* @param {number} year Hebrew year
|
|
16
|
-
* @param {number} month Hebrew month
|
|
17
|
-
* @param {number} day Hebrew date (1-30)
|
|
18
|
-
* @return {number}
|
|
19
|
-
*/
|
|
20
|
-
static hebrew2abs(year: number, month: number, day: number): number;
|
|
21
|
-
/**
|
|
22
|
-
* @private
|
|
23
|
-
* @param {string} locale
|
|
24
|
-
* @return {string}
|
|
25
|
-
*/
|
|
26
|
-
private static getDayOfTranslation;
|
|
27
|
-
/**
|
|
28
|
-
* @private
|
|
29
|
-
* @param {string} units
|
|
30
|
-
* @return {string}
|
|
31
|
-
*/
|
|
32
|
-
private static standardizeUnits;
|
|
33
|
-
/**
|
|
34
|
-
* Returns true if Hebrew year is a leap year
|
|
35
|
-
* @param {number} year Hebrew year
|
|
36
|
-
* @return {boolean}
|
|
37
|
-
*/
|
|
38
|
-
static isLeapYear(year: number): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
41
|
-
* @param {number} year Hebrew year
|
|
42
|
-
* @return {number}
|
|
43
|
-
*/
|
|
44
|
-
static monthsInYear(year: number): number;
|
|
45
|
-
/**
|
|
46
|
-
* Number of days in Hebrew month in a given year (29 or 30)
|
|
47
|
-
* @param {number} month Hebrew month (e.g. months.TISHREI)
|
|
48
|
-
* @param {number} year Hebrew year
|
|
49
|
-
* @return {number}
|
|
50
|
-
*/
|
|
51
|
-
static daysInMonth(month: number, year: number): number;
|
|
52
|
-
/**
|
|
53
|
-
* Returns a transliterated string name of Hebrew month in year,
|
|
54
|
-
* for example 'Elul' or 'Cheshvan'.
|
|
55
|
-
* @param {number} month Hebrew month (e.g. months.TISHREI)
|
|
56
|
-
* @param {number} year Hebrew year
|
|
57
|
-
* @return {string}
|
|
58
|
-
*/
|
|
59
|
-
static getMonthName(month: number, year: number): string;
|
|
60
|
-
/**
|
|
61
|
-
* Returns the Hebrew month number (NISAN=1, TISHREI=7)
|
|
62
|
-
* @param {number|string} month A number, or Hebrew month name string
|
|
63
|
-
* @return {number}
|
|
64
|
-
*/
|
|
65
|
-
static monthNum(month: number | string): number;
|
|
66
|
-
/**
|
|
67
|
-
* Number of days in the hebrew YEAR
|
|
68
|
-
* @param {number} year Hebrew year
|
|
69
|
-
* @return {number}
|
|
70
|
-
*/
|
|
71
|
-
static daysInYear(year: number): number;
|
|
72
|
-
/**
|
|
73
|
-
* true if Cheshvan is long in Hebrew year
|
|
74
|
-
* @param {number} year Hebrew year
|
|
75
|
-
* @return {boolean}
|
|
76
|
-
*/
|
|
77
|
-
static longCheshvan(year: number): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* true if Kislev is short in Hebrew year
|
|
80
|
-
* @param {number} year Hebrew year
|
|
81
|
-
* @return {boolean}
|
|
82
|
-
*/
|
|
83
|
-
static shortKislev(year: number): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Converts Hebrew month string name to numeric
|
|
86
|
-
* @param {string|number} monthName monthName
|
|
87
|
-
* @return {number}
|
|
88
|
-
*/
|
|
89
|
-
static monthFromName(monthName: string | number): number;
|
|
90
|
-
/**
|
|
91
|
-
* Note: Applying this function to d+6 gives us the DAYNAME on or after an
|
|
92
|
-
* absolute day d. Similarly, applying it to d+3 gives the DAYNAME nearest to
|
|
93
|
-
* absolute date d, applying it to d-1 gives the DAYNAME previous to absolute
|
|
94
|
-
* date d, and applying it to d+7 gives the DAYNAME following absolute date d.
|
|
95
|
-
* @param {number} dayOfWeek
|
|
96
|
-
* @param {number} absdate
|
|
97
|
-
* @return {number}
|
|
98
|
-
*/
|
|
99
|
-
static dayOnOrBefore(dayOfWeek: number, absdate: number): number;
|
|
100
|
-
/**
|
|
101
|
-
* Tests if the object is an instance of `HDate`
|
|
102
|
-
* @param {any} obj
|
|
103
|
-
* @return {boolean}
|
|
104
|
-
*/
|
|
105
|
-
static isHDate(obj: any): boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Construct a new instance of `HDate` from a Gematriya-formatted string
|
|
108
|
-
* @example
|
|
109
|
-
* HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
|
|
110
|
-
* HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
|
|
111
|
-
* HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708
|
|
112
|
-
* @param {string} str
|
|
113
|
-
* @param {number} currentThousands
|
|
114
|
-
* @return {HDate}
|
|
115
|
-
*/
|
|
116
|
-
static fromGematriyaString(str: string, currentThousands?: number): HDate;
|
|
117
|
-
/**
|
|
118
|
-
* Create a Hebrew date. There are 3 basic forms for the `HDate()` constructor.
|
|
119
|
-
*
|
|
120
|
-
* 1. No parameters - represents the current Hebrew date at time of instantiation
|
|
121
|
-
* 2. One parameter
|
|
122
|
-
* * `Date` - represents the Hebrew date corresponding to the Gregorian date using
|
|
123
|
-
* local time. Hours, minutes, seconds and milliseconds are ignored.
|
|
124
|
-
* * `HDate` - clones a copy of the given Hebrew date
|
|
125
|
-
* * `number` - Converts absolute R.D. days to Hebrew date.
|
|
126
|
-
* R.D. 1 == the imaginary date January 1, 1 (Gregorian)
|
|
127
|
-
* 3. Three parameters: Hebrew day, Hebrew month, Hebrew year. Hebrew day should
|
|
128
|
-
* be a number between 1-30, Hebrew month can be a number or string, and
|
|
129
|
-
* Hebrew year is always a number.
|
|
130
|
-
* @example
|
|
131
|
-
* import {HDate, months} from '@hebcal/core';
|
|
132
|
-
*
|
|
133
|
-
* const hd1 = new HDate();
|
|
134
|
-
* const hd2 = new HDate(new Date(2008, 10, 13));
|
|
135
|
-
* const hd3 = new HDate(15, 'Cheshvan', 5769);
|
|
136
|
-
* const hd4 = new HDate(15, months.CHESHVAN, 5769);
|
|
137
|
-
* const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
|
|
138
|
-
* const monthName = 'אייר';
|
|
139
|
-
* const hd6 = new HDate(5, monthName, 5773);
|
|
140
|
-
* @param {number|Date|HDate} [day] - Day of month (1-30) if a `number`.
|
|
141
|
-
* If a `Date` is specified, represents the Hebrew date corresponding to the
|
|
142
|
-
* Gregorian date using local time.
|
|
143
|
-
* If an `HDate` is specified, clones a copy of the given Hebrew date.
|
|
144
|
-
* @param {number|string} [month] - Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
145
|
-
* @param {number} [year] - Hebrew year
|
|
146
|
-
*/
|
|
147
|
-
constructor(day?: number | HDate | Date | undefined, month?: string | number | undefined, year?: number | undefined, ...args: any[]);
|
|
148
|
-
/**
|
|
149
|
-
* @private
|
|
150
|
-
* @type {number}
|
|
151
|
-
*/
|
|
152
|
-
private dd;
|
|
153
|
-
private mm;
|
|
154
|
-
yy: number;
|
|
155
|
-
/**
|
|
156
|
-
* @private
|
|
157
|
-
* @type {number}
|
|
158
|
-
*/
|
|
159
|
-
private rd;
|
|
160
|
-
/**
|
|
161
|
-
* Gets the Hebrew year of this Hebrew date
|
|
162
|
-
* @return {number}
|
|
163
|
-
*/
|
|
164
|
-
getFullYear(): number;
|
|
165
|
-
/**
|
|
166
|
-
* Tests if this date occurs during a leap year
|
|
167
|
-
* @return {boolean}
|
|
168
|
-
*/
|
|
169
|
-
isLeapYear(): boolean;
|
|
170
|
-
/**
|
|
171
|
-
* Gets the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date
|
|
172
|
-
* @return {number}
|
|
173
|
-
*/
|
|
174
|
-
getMonth(): number;
|
|
175
|
-
/**
|
|
176
|
-
* The Tishrei-based month of the date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year
|
|
177
|
-
* @return {number}
|
|
178
|
-
*/
|
|
179
|
-
getTishreiMonth(): number;
|
|
180
|
-
/**
|
|
181
|
-
* Number of days in the month of this Hebrew date
|
|
182
|
-
* @return {number}
|
|
183
|
-
*/
|
|
184
|
-
daysInMonth(): number;
|
|
185
|
-
/**
|
|
186
|
-
* Gets the day within the month (1-30)
|
|
187
|
-
* @return {number}
|
|
188
|
-
*/
|
|
189
|
-
getDate(): number;
|
|
190
|
-
/**
|
|
191
|
-
* Gets the day of the week. 0=Sunday, 6=Saturday
|
|
192
|
-
* @return {number}
|
|
193
|
-
*/
|
|
194
|
-
getDay(): number;
|
|
195
|
-
/**
|
|
196
|
-
* Sets the day of the month of the date. Returns the object it was called upon
|
|
197
|
-
* @private
|
|
198
|
-
* @param {number|string} month A number, or Hebrew month name string
|
|
199
|
-
* @return {HDate}
|
|
200
|
-
*/
|
|
201
|
-
private setMonth;
|
|
202
|
-
/**
|
|
203
|
-
* @private
|
|
204
|
-
* @param {number} date
|
|
205
|
-
* @return {HDate}
|
|
206
|
-
*/
|
|
207
|
-
private setDate;
|
|
208
|
-
/**
|
|
209
|
-
* Converts to Gregorian date
|
|
210
|
-
* @return {Date}
|
|
211
|
-
*/
|
|
212
|
-
greg(): Date;
|
|
213
|
-
/**
|
|
214
|
-
* Returns R.D. (Rata Die) fixed days.
|
|
215
|
-
* R.D. 1 == Monday, January 1, 1 (Gregorian)
|
|
216
|
-
* Note also that R.D. = Julian Date − 1,721,424.5
|
|
217
|
-
* https://en.wikipedia.org/wiki/Rata_Die#Dershowitz_and_Reingold
|
|
218
|
-
* @return {number}
|
|
219
|
-
*/
|
|
220
|
-
abs(): number;
|
|
221
|
-
/**
|
|
222
|
-
* Returns a transliterated Hebrew month name, e.g. `'Elul'` or `'Cheshvan'`.
|
|
223
|
-
* @return {string}
|
|
224
|
-
*/
|
|
225
|
-
getMonthName(): string;
|
|
226
|
-
/**
|
|
227
|
-
* Renders this Hebrew date as a translated or transliterated string,
|
|
228
|
-
* including ordinal e.g. `'15th of Cheshvan, 5769'`.
|
|
229
|
-
* @example
|
|
230
|
-
* import {HDate, months} from '@hebcal/core';
|
|
231
|
-
*
|
|
232
|
-
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
233
|
-
* console.log(hd.render('en')); // '15th of Cheshvan, 5769'
|
|
234
|
-
* console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
|
|
235
|
-
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
236
|
-
* @param {boolean} [showYear=true] Display year (defaults to true).
|
|
237
|
-
* @return {string}
|
|
238
|
-
*/
|
|
239
|
-
render(locale?: string | undefined, showYear?: boolean | undefined): string;
|
|
240
|
-
/**
|
|
241
|
-
* Renders this Hebrew date in Hebrew gematriya, regardless of locale.
|
|
242
|
-
* @example
|
|
243
|
-
* import {HDate, months} from '@hebcal/core';
|
|
244
|
-
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
245
|
-
* console.log(hd.renderGematriya()); // 'ט״ו חֶשְׁוָן תשס״ט'
|
|
246
|
-
* @param {boolean} [suppressNikud]
|
|
247
|
-
* @return {string}
|
|
248
|
-
*/
|
|
249
|
-
renderGematriya(suppressNikud?: boolean | undefined): string;
|
|
250
|
-
/**
|
|
251
|
-
* Returns an `HDate` representing the a dayNumber before the current date.
|
|
252
|
-
* Sunday=0, Saturday=6
|
|
253
|
-
* @example
|
|
254
|
-
* new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
|
|
255
|
-
* @param {number} day day of week
|
|
256
|
-
* @return {HDate}
|
|
257
|
-
*/
|
|
258
|
-
before(day: number): HDate;
|
|
259
|
-
/**
|
|
260
|
-
* Returns an `HDate` representing the a dayNumber on or before the current date.
|
|
261
|
-
* Sunday=0, Saturday=6
|
|
262
|
-
* @example
|
|
263
|
-
* new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
|
|
264
|
-
* new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
265
|
-
* new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
266
|
-
* @param {number} dow day of week
|
|
267
|
-
* @return {HDate}
|
|
268
|
-
*/
|
|
269
|
-
onOrBefore(dow: number): HDate;
|
|
270
|
-
/**
|
|
271
|
-
* Returns an `HDate` representing the nearest dayNumber to the current date
|
|
272
|
-
* Sunday=0, Saturday=6
|
|
273
|
-
* @example
|
|
274
|
-
* new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
|
|
275
|
-
* new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014
|
|
276
|
-
* @param {number} dow day of week
|
|
277
|
-
* @return {HDate}
|
|
278
|
-
*/
|
|
279
|
-
nearest(dow: number): HDate;
|
|
280
|
-
/**
|
|
281
|
-
* Returns an `HDate` representing the a dayNumber on or after the current date.
|
|
282
|
-
* Sunday=0, Saturday=6
|
|
283
|
-
* @example
|
|
284
|
-
* new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
285
|
-
* new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
286
|
-
* new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014
|
|
287
|
-
* @param {number} dow day of week
|
|
288
|
-
* @return {HDate}
|
|
289
|
-
*/
|
|
290
|
-
onOrAfter(dow: number): HDate;
|
|
291
|
-
/**
|
|
292
|
-
* Returns an `HDate` representing the a dayNumber after the current date.
|
|
293
|
-
* Sunday=0, Saturday=6
|
|
294
|
-
* @example
|
|
295
|
-
* new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
|
|
296
|
-
* new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
297
|
-
* new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
298
|
-
* @param {number} day day of week
|
|
299
|
-
* @return {HDate}
|
|
300
|
-
*/
|
|
301
|
-
after(day: number): HDate;
|
|
302
|
-
/**
|
|
303
|
-
* Returns the next Hebrew date
|
|
304
|
-
* @return {HDate}
|
|
305
|
-
*/
|
|
306
|
-
next(): HDate;
|
|
307
|
-
/**
|
|
308
|
-
* Returns the previous Hebrew date
|
|
309
|
-
* @return {HDate}
|
|
310
|
-
*/
|
|
311
|
-
prev(): HDate;
|
|
312
|
-
/**
|
|
313
|
-
* Returns a cloned `HDate` object with a specified amount of time added
|
|
314
|
-
*
|
|
315
|
-
* Units are case insensitive, and support plural and short forms.
|
|
316
|
-
* Note, short forms are case sensitive.
|
|
317
|
-
*
|
|
318
|
-
* | Unit | Shorthand | Description
|
|
319
|
-
* | --- | --- | --- |
|
|
320
|
-
* | `day` | `d` | days |
|
|
321
|
-
* | `week` | `w` | weeks |
|
|
322
|
-
* | `month` | `M` | months |
|
|
323
|
-
* | `year` | `y` | years |
|
|
324
|
-
* @param {number} number
|
|
325
|
-
* @param {string} [units]
|
|
326
|
-
* @return {HDate}
|
|
327
|
-
*/
|
|
328
|
-
add(number: number, units?: string | undefined): HDate;
|
|
329
|
-
/**
|
|
330
|
-
* Returns a cloned `HDate` object with a specified amount of time subracted
|
|
331
|
-
*
|
|
332
|
-
* Units are case insensitive, and support plural and short forms.
|
|
333
|
-
* Note, short forms are case sensitive.
|
|
334
|
-
*
|
|
335
|
-
* | Unit | Shorthand | Description
|
|
336
|
-
* | --- | --- | --- |
|
|
337
|
-
* | `day` | `d` | days |
|
|
338
|
-
* | `week` | `w` | weeks |
|
|
339
|
-
* | `month` | `M` | months |
|
|
340
|
-
* | `year` | `y` | years |
|
|
341
|
-
* @example
|
|
342
|
-
* import {HDate, months} from '@hebcal/core';
|
|
343
|
-
*
|
|
344
|
-
* const hd1 = new HDate(15, months.CHESHVAN, 5769);
|
|
345
|
-
* const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
|
|
346
|
-
* const hd3 = hd1.add(-3, 'M'); // 30 Av 5768
|
|
347
|
-
* @param {number} number
|
|
348
|
-
* @param {string} [units]
|
|
349
|
-
* @return {HDate}
|
|
350
|
-
*/
|
|
351
|
-
subtract(number: number, units?: string | undefined): HDate;
|
|
352
|
-
/**
|
|
353
|
-
* Returns the difference in days between the two given HDates.
|
|
354
|
-
*
|
|
355
|
-
* The result is positive if `this` date is comes chronologically
|
|
356
|
-
* after the `other` date, and negative
|
|
357
|
-
* if the order of the two dates is reversed.
|
|
358
|
-
*
|
|
359
|
-
* The result is zero if the two dates are identical.
|
|
360
|
-
* @example
|
|
361
|
-
* import {HDate, months} from '@hebcal/core';
|
|
362
|
-
*
|
|
363
|
-
* const hd1 = new HDate(25, months.KISLEV, 5770);
|
|
364
|
-
* const hd2 = new HDate(15, months.CHESHVAN, 5769);
|
|
365
|
-
* const days = hd1.deltaDays(hd2); // 394
|
|
366
|
-
* @param {HDate} other Hebrew date to compare
|
|
367
|
-
* @return {number}
|
|
368
|
-
*/
|
|
369
|
-
deltaDays(other: HDate): number;
|
|
370
|
-
/**
|
|
371
|
-
* Compares this date to another date, returning `true` if the dates match.
|
|
372
|
-
* @param {HDate} other Hebrew date to compare
|
|
373
|
-
* @return {boolean}
|
|
374
|
-
*/
|
|
375
|
-
isSameDate(other: HDate): boolean;
|
|
376
|
-
/** @return {string} */
|
|
377
|
-
toString(): string;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* A simple Hebrew date object with numeric fields `yy`, `mm`, and `dd`
|
|
381
|
-
*/
|
|
382
|
-
export type SimpleHebrewDate = {
|
|
383
|
-
/**
|
|
384
|
-
* Hebrew year
|
|
385
|
-
*/
|
|
386
|
-
yy: number;
|
|
387
|
-
/**
|
|
388
|
-
* Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
389
|
-
*/
|
|
390
|
-
mm: number;
|
|
391
|
-
/**
|
|
392
|
-
* Day of month (1-30)
|
|
393
|
-
*/
|
|
394
|
-
dd: number;
|
|
395
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/locale-he.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/staticHols.d.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { flags } from './event.js';
|
|
2
|
-
export interface Holiday {
|
|
3
|
-
mm: number;
|
|
4
|
-
dd: number;
|
|
5
|
-
desc: HolidayDesc;
|
|
6
|
-
flags: flags;
|
|
7
|
-
chmDay?: number;
|
|
8
|
-
emoji?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ModernHoliday {
|
|
11
|
-
firstYear: number;
|
|
12
|
-
mm: number;
|
|
13
|
-
dd: number;
|
|
14
|
-
desc: HolidayDesc;
|
|
15
|
-
chul?: boolean;
|
|
16
|
-
suppressEmoji?: boolean;
|
|
17
|
-
satPostponeToSun?: boolean;
|
|
18
|
-
friPostponeToSun?: boolean;
|
|
19
|
-
friSatMovetoThu?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Transliterated names of holidays, used by `Event.getDesc()`
|
|
23
|
-
* @readonly
|
|
24
|
-
* @enum {string}
|
|
25
|
-
*/
|
|
26
|
-
export declare enum HolidayDesc {
|
|
27
|
-
/** Asara B'Tevet */
|
|
28
|
-
ASARA_BTEVET = "Asara B'Tevet",
|
|
29
|
-
/** Birkat Hachamah */
|
|
30
|
-
BIRKAT_HACHAMAH = "Birkat Hachamah",
|
|
31
|
-
/** Chag HaBanot */
|
|
32
|
-
CHAG_HABANOT = "Chag HaBanot",
|
|
33
|
-
/** Chanukah: 8th Day */
|
|
34
|
-
CHANUKAH_8TH_DAY = "Chanukah: 8th Day",
|
|
35
|
-
/** Erev Tish'a B'Av */
|
|
36
|
-
EREV_TISHA_BAV = "Erev Tish'a B'Av",
|
|
37
|
-
/** Leil Selichot */
|
|
38
|
-
LEIL_SELICHOT = "Leil Selichot",
|
|
39
|
-
/** Purim Katan */
|
|
40
|
-
PURIM_KATAN = "Purim Katan",
|
|
41
|
-
/** Purim Meshulash */
|
|
42
|
-
PURIM_MESHULASH = "Purim Meshulash",
|
|
43
|
-
/** Shabbat Chazon */
|
|
44
|
-
SHABBAT_CHAZON = "Shabbat Chazon",
|
|
45
|
-
/** Shabbat HaChodesh */
|
|
46
|
-
SHABBAT_HACHODESH = "Shabbat HaChodesh",
|
|
47
|
-
/** Shabbat HaGadol */
|
|
48
|
-
SHABBAT_HAGADOL = "Shabbat HaGadol",
|
|
49
|
-
/** Shabbat Nachamu */
|
|
50
|
-
SHABBAT_NACHAMU = "Shabbat Nachamu",
|
|
51
|
-
/** Shabbat Parah */
|
|
52
|
-
SHABBAT_PARAH = "Shabbat Parah",
|
|
53
|
-
/** Shabbat Shekalim */
|
|
54
|
-
SHABBAT_SHEKALIM = "Shabbat Shekalim",
|
|
55
|
-
/** Shabbat Shirah */
|
|
56
|
-
SHABBAT_SHIRAH = "Shabbat Shirah",
|
|
57
|
-
/** Shabbat Shuva */
|
|
58
|
-
SHABBAT_SHUVA = "Shabbat Shuva",
|
|
59
|
-
/** Shabbat Zachor */
|
|
60
|
-
SHABBAT_ZACHOR = "Shabbat Zachor",
|
|
61
|
-
/** Shushan Purim Katan */
|
|
62
|
-
SHUSHAN_PURIM_KATAN = "Shushan Purim Katan",
|
|
63
|
-
/** Ta'anit Bechorot */
|
|
64
|
-
TAANIT_BECHOROT = "Ta'anit Bechorot",
|
|
65
|
-
/** Ta'anit Esther */
|
|
66
|
-
TAANIT_ESTHER = "Ta'anit Esther",
|
|
67
|
-
/** Tish'a B'Av */
|
|
68
|
-
TISHA_BAV = "Tish'a B'Av",
|
|
69
|
-
/** Tzom Gedaliah */
|
|
70
|
-
TZOM_GEDALIAH = "Tzom Gedaliah",
|
|
71
|
-
/** Tzom Tammuz */
|
|
72
|
-
TZOM_TAMMUZ = "Tzom Tammuz",
|
|
73
|
-
/** Yom HaAtzma'ut */
|
|
74
|
-
YOM_HAATZMA_UT = "Yom HaAtzma'ut",
|
|
75
|
-
/** Yom HaShoah */
|
|
76
|
-
YOM_HASHOAH = "Yom HaShoah",
|
|
77
|
-
/** Yom HaZikaron */
|
|
78
|
-
YOM_HAZIKARON = "Yom HaZikaron",
|
|
79
|
-
/** Ben-Gurion Day */
|
|
80
|
-
BEN_GURION_DAY = "Ben-Gurion Day",
|
|
81
|
-
/** Chanukah: 1 Candle */
|
|
82
|
-
CHANUKAH_1_CANDLE = "Chanukah: 1 Candle",
|
|
83
|
-
/** Erev Pesach */
|
|
84
|
-
EREV_PESACH = "Erev Pesach",
|
|
85
|
-
/** Erev Purim */
|
|
86
|
-
EREV_PURIM = "Erev Purim",
|
|
87
|
-
/** Erev Rosh Hashana */
|
|
88
|
-
EREV_ROSH_HASHANA = "Erev Rosh Hashana",
|
|
89
|
-
/** Erev Shavuot */
|
|
90
|
-
EREV_SHAVUOT = "Erev Shavuot",
|
|
91
|
-
/** Erev Sukkot */
|
|
92
|
-
EREV_SUKKOT = "Erev Sukkot",
|
|
93
|
-
/** Erev Yom Kippur */
|
|
94
|
-
EREV_YOM_KIPPUR = "Erev Yom Kippur",
|
|
95
|
-
/** Family Day */
|
|
96
|
-
FAMILY_DAY = "Family Day",
|
|
97
|
-
/** Hebrew Language Day */
|
|
98
|
-
HEBREW_LANGUAGE_DAY = "Hebrew Language Day",
|
|
99
|
-
/** Herzl Day */
|
|
100
|
-
HERZL_DAY = "Herzl Day",
|
|
101
|
-
/** Jabotinsky Day */
|
|
102
|
-
JABOTINSKY_DAY = "Jabotinsky Day",
|
|
103
|
-
/** Lag BaOmer */
|
|
104
|
-
LAG_BAOMER = "Lag BaOmer",
|
|
105
|
-
/** Pesach I */
|
|
106
|
-
PESACH_I = "Pesach I",
|
|
107
|
-
/** Pesach II */
|
|
108
|
-
PESACH_II = "Pesach II",
|
|
109
|
-
/** Pesach III (CH''M) */
|
|
110
|
-
PESACH_III_CHM = "Pesach III (CH''M)",
|
|
111
|
-
/** Pesach II (CH''M) */
|
|
112
|
-
PESACH_II_CHM = "Pesach II (CH''M)",
|
|
113
|
-
/** Pesach IV (CH''M) */
|
|
114
|
-
PESACH_IV_CHM = "Pesach IV (CH''M)",
|
|
115
|
-
/** Pesach Sheni */
|
|
116
|
-
PESACH_SHENI = "Pesach Sheni",
|
|
117
|
-
/** Pesach VII */
|
|
118
|
-
PESACH_VII = "Pesach VII",
|
|
119
|
-
/** Pesach VIII */
|
|
120
|
-
PESACH_VIII = "Pesach VIII",
|
|
121
|
-
/** Pesach VI (CH''M) */
|
|
122
|
-
PESACH_VI_CHM = "Pesach VI (CH''M)",
|
|
123
|
-
/** Pesach V (CH''M) */
|
|
124
|
-
PESACH_V_CHM = "Pesach V (CH''M)",
|
|
125
|
-
/** Purim */
|
|
126
|
-
PURIM = "Purim",
|
|
127
|
-
/** Rosh Hashana II */
|
|
128
|
-
ROSH_HASHANA_II = "Rosh Hashana II",
|
|
129
|
-
/** Rosh Hashana LaBehemot */
|
|
130
|
-
ROSH_HASHANA_LABEHEMOT = "Rosh Hashana LaBehemot",
|
|
131
|
-
/** Shavuot */
|
|
132
|
-
SHAVUOT = "Shavuot",
|
|
133
|
-
/** Shavuot I */
|
|
134
|
-
SHAVUOT_I = "Shavuot I",
|
|
135
|
-
/** Shavuot II */
|
|
136
|
-
SHAVUOT_II = "Shavuot II",
|
|
137
|
-
/** Shmini Atzeret */
|
|
138
|
-
SHMINI_ATZERET = "Shmini Atzeret",
|
|
139
|
-
/** Shushan Purim */
|
|
140
|
-
SHUSHAN_PURIM = "Shushan Purim",
|
|
141
|
-
/** Sigd */
|
|
142
|
-
SIGD = "Sigd",
|
|
143
|
-
/** Simchat Torah */
|
|
144
|
-
SIMCHAT_TORAH = "Simchat Torah",
|
|
145
|
-
/** Sukkot I */
|
|
146
|
-
SUKKOT_I = "Sukkot I",
|
|
147
|
-
/** Sukkot II */
|
|
148
|
-
SUKKOT_II = "Sukkot II",
|
|
149
|
-
/** Sukkot III (CH''M) */
|
|
150
|
-
SUKKOT_III_CHM = "Sukkot III (CH''M)",
|
|
151
|
-
/** Sukkot II (CH''M) */
|
|
152
|
-
SUKKOT_II_CHM = "Sukkot II (CH''M)",
|
|
153
|
-
/** Sukkot IV (CH''M) */
|
|
154
|
-
SUKKOT_IV_CHM = "Sukkot IV (CH''M)",
|
|
155
|
-
/** Sukkot VII (Hoshana Raba) */
|
|
156
|
-
SUKKOT_VII_HOSHANA_RABA = "Sukkot VII (Hoshana Raba)",
|
|
157
|
-
/** Sukkot VI (CH''M) */
|
|
158
|
-
SUKKOT_VI_CHM = "Sukkot VI (CH''M)",
|
|
159
|
-
/** Sukkot V (CH''M) */
|
|
160
|
-
SUKKOT_V_CHM = "Sukkot V (CH''M)",
|
|
161
|
-
/** Tu B\'Av */
|
|
162
|
-
TU_BAV = "Tu B'Av",
|
|
163
|
-
/** Tu BiShvat */
|
|
164
|
-
TU_BISHVAT = "Tu BiShvat",
|
|
165
|
-
/** Yitzhak Rabin Memorial Day */
|
|
166
|
-
YITZHAK_RABIN_MEMORIAL_DAY = "Yitzhak Rabin Memorial Day",
|
|
167
|
-
/** Yom HaAliyah */
|
|
168
|
-
YOM_HAALIYAH = "Yom HaAliyah",
|
|
169
|
-
/** Yom HaAliyah School Observance */
|
|
170
|
-
YOM_HAALIYAH_SCHOOL_OBSERVANCE = "Yom HaAliyah School Observance",
|
|
171
|
-
/** Yom Kippur */
|
|
172
|
-
YOM_KIPPUR = "Yom Kippur",
|
|
173
|
-
/** Yom Yerushalayim */
|
|
174
|
-
YOM_YERUSHALAYIM = "Yom Yerushalayim"
|
|
175
|
-
}
|