@hebcal/core 6.0.8 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +2282 -1547
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +17 -19
- package/dist/bundle.min.js.map +1 -1
- package/dist/coverage/block-navigation.d.ts +1 -0
- package/dist/coverage/block-navigation.js +70 -0
- package/dist/coverage/prettify.d.ts +0 -0
- package/dist/coverage/prettify.js +477 -0
- package/dist/coverage/sorter.d.ts +1 -0
- package/dist/coverage/sorter.js +176 -0
- package/dist/eslint.config.d.mts +83 -0
- package/dist/eslint.config.mjs +28 -0
- package/dist/esm/DailyLearning.d.ts +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +5 -5
- package/dist/esm/HebrewDateEvent.js.map +1 -1
- package/dist/esm/HolidayEvent.d.ts +1 -0
- package/dist/esm/HolidayEvent.js +17 -1
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +2 -1
- package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
- package/dist/esm/ParshaEvent.js +2 -1
- package/dist/esm/ParshaEvent.js.map +1 -1
- package/dist/esm/TimedEvent.js +9 -3
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +2 -1
- package/dist/esm/YomKippurKatanEvent.js.map +1 -1
- package/dist/esm/ashkenazi.po.d.ts +14 -2
- package/dist/esm/ashkenazi.po.js +2 -2
- package/dist/esm/ashkenazi.po.js.map +1 -1
- package/dist/esm/calendar.js +6 -8
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +11 -3
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/event.js +18 -1
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +2 -2
- package/dist/esm/getStartAndEnd.js.map +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.d.ts +20 -0
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +3 -3
- package/dist/esm/hebcal.js.map +1 -1
- package/dist/esm/holidays.js +3 -3
- package/dist/esm/holidays.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.d.ts +1 -2
- package/dist/esm/locale.js +1 -1
- package/dist/esm/locale.js.map +1 -1
- package/dist/esm/location.js +7 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.d.ts +71 -1
- package/dist/esm/molad.js +113 -12
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/moladBase.d.ts +15 -0
- package/dist/esm/moladBase.js +83 -0
- package/dist/esm/moladBase.js.map +1 -0
- package/dist/esm/moladDate.d.ts +12 -0
- package/dist/esm/moladDate.js +63 -0
- package/dist/esm/moladDate.js.map +1 -0
- package/dist/esm/omer.d.ts +0 -1
- package/dist/esm/omer.js +7 -4
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +2 -2
- package/dist/esm/parshaName.js.map +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +5 -6
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.js +13 -7
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +4 -4
- package/dist/esm/tachanun.js.map +1 -1
- package/dist/esm/zmanim.d.ts +263 -2
- package/dist/esm/zmanim.js +431 -12
- package/dist/esm/zmanim.js.map +1 -1
- package/dist/po2json.js +3 -4
- package/dist/src/DailyLearning.d.ts +1 -1
- package/dist/src/HebrewDateEvent.js +4 -4
- package/dist/src/HolidayEvent.d.ts +1 -0
- package/dist/src/HolidayEvent.js +16 -0
- package/dist/src/MevarchimChodeshEvent.js +1 -0
- package/dist/src/ParshaEvent.js +1 -0
- package/dist/src/TimedEvent.js +8 -2
- package/dist/src/YomKippurKatanEvent.js +1 -0
- package/dist/src/ashkenazi.po.d.ts +14 -2
- package/dist/src/ashkenazi.po.js +1 -1
- package/dist/src/calendar.js +5 -7
- package/dist/src/candles.js +10 -2
- package/dist/src/event.js +17 -0
- package/dist/src/getStartAndEnd.js +1 -1
- package/dist/src/he-x-NoNikud.po.d.ts +2 -0
- package/dist/src/he-x-NoNikud.po.js +1 -1
- package/dist/src/he.po.d.ts +20 -0
- package/dist/src/he.po.js +1 -1
- package/dist/src/hebcal.js +2 -2
- package/dist/src/holidays.js +2 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/locale.d.ts +1 -2
- package/dist/src/locale.js +1 -1
- package/dist/src/location.js +6 -0
- package/dist/src/molad.d.ts +71 -1
- package/dist/src/molad.js +112 -11
- package/dist/src/moladBase.d.ts +15 -0
- package/dist/src/moladBase.js +78 -0
- package/dist/src/moladDate.d.ts +12 -0
- package/dist/src/moladDate.js +58 -0
- package/dist/src/omer.d.ts +0 -1
- package/dist/src/omer.js +6 -3
- package/dist/src/parshaName.js +1 -1
- package/dist/src/pkgVersion.d.ts +1 -1
- package/dist/src/pkgVersion.js +1 -1
- package/dist/src/reformatTimeStr.js +4 -5
- package/dist/src/sedra.js +12 -6
- package/dist/src/tachanun.js +3 -3
- package/dist/src/zmanim.d.ts +263 -2
- package/dist/src/zmanim.js +429 -10
- package/dist/version.js +1 -2
- package/package.json +17 -19
- package/dist/CalOptions.d.ts +0 -168
- package/dist/DailyLearning.d.ts +0 -32
- package/dist/HebrewDateEvent.d.ts +0 -37
- package/dist/HolidayEvent.d.ts +0 -83
- package/dist/MevarchimChodeshEvent.d.ts +0 -26
- package/dist/ParshaEvent.d.ts +0 -19
- package/dist/TimedEvent.d.ts +0 -47
- package/dist/YomKippurKatanEvent.d.ts +0 -23
- package/dist/ashkenazi.po.d.ts +0 -70
- package/dist/calendar.d.ts +0 -111
- package/dist/candles.d.ts +0 -44
- package/dist/event.d.ts +0 -188
- package/dist/getStartAndEnd.d.ts +0 -6
- package/dist/hallel.d.ts +0 -6
- package/dist/he-x-NoNikud.po.d.ts +0 -16
- package/dist/he.po.d.ts +0 -195
- package/dist/hebcal.d.ts +0 -260
- package/dist/holidays.d.ts +0 -22
- package/dist/index.d.ts +0 -26
- package/dist/isAssurBemlacha.d.ts +0 -9
- package/dist/locale.d.ts +0 -2
- package/dist/location.d.ts +0 -73
- package/dist/modern.d.ts +0 -18
- package/dist/molad.d.ts +0 -62
- package/dist/omer.d.ts +0 -53
- package/dist/parshaName.d.ts +0 -2
- package/dist/parshaYear.d.ts +0 -9
- package/dist/pkgVersion.d.ts +0 -2
- package/dist/reformatTimeStr.d.ts +0 -8
- package/dist/sedra.d.ts +0 -95
- package/dist/size-demo/dist/getHoliday.d.ts +0 -1944
- package/dist/size-demo/dist/getHoliday.js +0 -3712
- package/dist/size-demo/dist/parshiyot.js +0 -10662
- package/dist/size-demo/dist/sedra.d.ts +0 -1411
- package/dist/size-demo/dist/sedra.js +0 -2359
- package/dist/size-demo/dist/tachanun.d.ts +0 -1015
- package/dist/size-demo/dist/tachanun.js +0 -1755
- package/dist/size-demo/getHoliday.d.ts +0 -1
- package/dist/size-demo/getHoliday.js +0 -3
- package/dist/size-demo/parshiyot.d.ts +0 -1
- package/dist/size-demo/parshiyot.js +0 -11
- package/dist/size-demo/rollup.config.d.ts +0 -3
- package/dist/size-demo/rollup.config.js +0 -47
- package/dist/size-demo/sedra.d.ts +0 -1
- package/dist/size-demo/sedra.js +0 -3
- package/dist/size-demo/tachanun.d.ts +0 -1
- package/dist/size-demo/tachanun.js +0 -3
- package/dist/staticHolidays.d.ts +0 -176
- package/dist/tachanun.d.ts +0 -29
- package/dist/zmanim.d.ts +0 -347
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { calendar } from '../dist/esm/calendar';
|
|
2
|
-
const events = calendar({
|
|
3
|
-
year: new Date().getFullYear() - 1,
|
|
4
|
-
numYears: 2,
|
|
5
|
-
sedrot: true,
|
|
6
|
-
noHolidays: true,
|
|
7
|
-
});
|
|
8
|
-
console.log(events.map(event => ({
|
|
9
|
-
datetime: event.date.greg(),
|
|
10
|
-
label: event.render('he-x-NoNikud'),
|
|
11
|
-
})));
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import prettyBytes from 'pretty-bytes';
|
|
2
|
-
import { defineConfig } from 'rollup';
|
|
3
|
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
4
|
-
import bundleSize from 'rollup-plugin-bundle-size';
|
|
5
|
-
import terser from '@rollup/plugin-terser';
|
|
6
|
-
import typescript from '@rollup/plugin-typescript';
|
|
7
|
-
import { appendFileSync, readdirSync, writeFileSync } from 'fs';
|
|
8
|
-
import { basename } from 'path';
|
|
9
|
-
import { visualizer } from 'rollup-plugin-visualizer';
|
|
10
|
-
const sizeFile = './size-demo/sizes.md';
|
|
11
|
-
writeFileSync(sizeFile, '# Bundle sizes\n\n');
|
|
12
|
-
export default defineConfig(readdirSync('./size-demo')
|
|
13
|
-
.filter(f => f.endsWith('.ts'))
|
|
14
|
-
.filter(f => !f.endsWith('.d.ts') && !f.endsWith('.config.ts'))
|
|
15
|
-
.map((file) => {
|
|
16
|
-
const name = basename(file, '.ts');
|
|
17
|
-
return {
|
|
18
|
-
input: `size-demo/${name}.ts`,
|
|
19
|
-
output: [
|
|
20
|
-
{
|
|
21
|
-
file: `size-demo/dist/${name}.js`,
|
|
22
|
-
format: 'es',
|
|
23
|
-
inlineDynamicImports: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
file: `size-demo/dist/${name}.min.js`,
|
|
27
|
-
format: 'es',
|
|
28
|
-
inlineDynamicImports: true,
|
|
29
|
-
plugins: [terser()],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
plugins: [
|
|
33
|
-
typescript({ tsconfig: './size-demo/tsconfig.json' }),
|
|
34
|
-
nodeResolve(),
|
|
35
|
-
bundleSize(),
|
|
36
|
-
{
|
|
37
|
-
name: 'record-size-to-file',
|
|
38
|
-
generateBundle(options, bundle) {
|
|
39
|
-
const asset = basename(options.file);
|
|
40
|
-
const result = bundle[asset];
|
|
41
|
-
appendFileSync(sizeFile, `- \`${asset}\`: ${prettyBytes(result.code.length)}\n`);
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
visualizer({ filename: `size-demo/dist/${name}.stats.html` }),
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/size-demo/sedra.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/staticHolidays.d.ts
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transliterated names of holidays, used by `Event.getDesc()`
|
|
3
|
-
* @readonly
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export declare const holidayDesc: {
|
|
7
|
-
/** Asara B'Tevet */
|
|
8
|
-
readonly ASARA_BTEVET: "Asara B'Tevet";
|
|
9
|
-
/** Birkat Hachamah */
|
|
10
|
-
readonly BIRKAT_HACHAMAH: "Birkat Hachamah";
|
|
11
|
-
/** Chag HaBanot */
|
|
12
|
-
readonly CHAG_HABANOT: "Chag HaBanot";
|
|
13
|
-
/** Chanukah: 8th Day */
|
|
14
|
-
readonly CHANUKAH_8TH_DAY: "Chanukah: 8th Day";
|
|
15
|
-
/** Erev Tish'a B'Av */
|
|
16
|
-
readonly EREV_TISHA_BAV: "Erev Tish'a B'Av";
|
|
17
|
-
/** Leil Selichot */
|
|
18
|
-
readonly LEIL_SELICHOT: "Leil Selichot";
|
|
19
|
-
/** Purim Katan */
|
|
20
|
-
readonly PURIM_KATAN: "Purim Katan";
|
|
21
|
-
/** Purim Meshulash */
|
|
22
|
-
readonly PURIM_MESHULASH: "Purim Meshulash";
|
|
23
|
-
/** Shabbat Chazon */
|
|
24
|
-
readonly SHABBAT_CHAZON: "Shabbat Chazon";
|
|
25
|
-
/** Shabbat HaChodesh */
|
|
26
|
-
readonly SHABBAT_HACHODESH: "Shabbat HaChodesh";
|
|
27
|
-
/** Shabbat HaGadol */
|
|
28
|
-
readonly SHABBAT_HAGADOL: "Shabbat HaGadol";
|
|
29
|
-
/** Shabbat Nachamu */
|
|
30
|
-
readonly SHABBAT_NACHAMU: "Shabbat Nachamu";
|
|
31
|
-
/** Shabbat Parah */
|
|
32
|
-
readonly SHABBAT_PARAH: "Shabbat Parah";
|
|
33
|
-
/** Shabbat Shekalim */
|
|
34
|
-
readonly SHABBAT_SHEKALIM: "Shabbat Shekalim";
|
|
35
|
-
/** Shabbat Shirah */
|
|
36
|
-
readonly SHABBAT_SHIRAH: "Shabbat Shirah";
|
|
37
|
-
/** Shabbat Shuva */
|
|
38
|
-
readonly SHABBAT_SHUVA: "Shabbat Shuva";
|
|
39
|
-
/** Shabbat Zachor */
|
|
40
|
-
readonly SHABBAT_ZACHOR: "Shabbat Zachor";
|
|
41
|
-
/** Shushan Purim Katan */
|
|
42
|
-
readonly SHUSHAN_PURIM_KATAN: "Shushan Purim Katan";
|
|
43
|
-
/** Ta'anit Bechorot */
|
|
44
|
-
readonly TAANIT_BECHOROT: "Ta'anit Bechorot";
|
|
45
|
-
/** Ta'anit Esther */
|
|
46
|
-
readonly TAANIT_ESTHER: "Ta'anit Esther";
|
|
47
|
-
/** Tish'a B'Av */
|
|
48
|
-
readonly TISHA_BAV: "Tish'a B'Av";
|
|
49
|
-
/** Tzom Gedaliah */
|
|
50
|
-
readonly TZOM_GEDALIAH: "Tzom Gedaliah";
|
|
51
|
-
/** Tzom Tammuz */
|
|
52
|
-
readonly TZOM_TAMMUZ: "Tzom Tammuz";
|
|
53
|
-
/** Yom HaAtzma'ut */
|
|
54
|
-
readonly YOM_HAATZMA_UT: "Yom HaAtzma'ut";
|
|
55
|
-
/** Yom HaShoah */
|
|
56
|
-
readonly YOM_HASHOAH: "Yom HaShoah";
|
|
57
|
-
/** Yom HaZikaron */
|
|
58
|
-
readonly YOM_HAZIKARON: "Yom HaZikaron";
|
|
59
|
-
/** Ben-Gurion Day */
|
|
60
|
-
readonly BEN_GURION_DAY: "Ben-Gurion Day";
|
|
61
|
-
/** Chanukah: 1 Candle */
|
|
62
|
-
readonly CHANUKAH_1_CANDLE: "Chanukah: 1 Candle";
|
|
63
|
-
/** Erev Pesach */
|
|
64
|
-
readonly EREV_PESACH: "Erev Pesach";
|
|
65
|
-
/** Erev Purim */
|
|
66
|
-
readonly EREV_PURIM: "Erev Purim";
|
|
67
|
-
/** Erev Rosh Hashana */
|
|
68
|
-
readonly EREV_ROSH_HASHANA: "Erev Rosh Hashana";
|
|
69
|
-
/** Erev Shavuot */
|
|
70
|
-
readonly EREV_SHAVUOT: "Erev Shavuot";
|
|
71
|
-
/** Erev Sukkot */
|
|
72
|
-
readonly EREV_SUKKOT: "Erev Sukkot";
|
|
73
|
-
/** Erev Yom Kippur */
|
|
74
|
-
readonly EREV_YOM_KIPPUR: "Erev Yom Kippur";
|
|
75
|
-
/** Family Day */
|
|
76
|
-
readonly FAMILY_DAY: "Family Day";
|
|
77
|
-
/** Hebrew Language Day */
|
|
78
|
-
readonly HEBREW_LANGUAGE_DAY: "Hebrew Language Day";
|
|
79
|
-
/** Herzl Day */
|
|
80
|
-
readonly HERZL_DAY: "Herzl Day";
|
|
81
|
-
/** Jabotinsky Day */
|
|
82
|
-
readonly JABOTINSKY_DAY: "Jabotinsky Day";
|
|
83
|
-
/** Lag BaOmer */
|
|
84
|
-
readonly LAG_BAOMER: "Lag BaOmer";
|
|
85
|
-
/** Pesach I */
|
|
86
|
-
readonly PESACH_I: "Pesach I";
|
|
87
|
-
/** Pesach II */
|
|
88
|
-
readonly PESACH_II: "Pesach II";
|
|
89
|
-
/** Pesach III (CH''M) */
|
|
90
|
-
readonly PESACH_III_CHM: "Pesach III (CH''M)";
|
|
91
|
-
/** Pesach II (CH''M) */
|
|
92
|
-
readonly PESACH_II_CHM: "Pesach II (CH''M)";
|
|
93
|
-
/** Pesach IV (CH''M) */
|
|
94
|
-
readonly PESACH_IV_CHM: "Pesach IV (CH''M)";
|
|
95
|
-
/** Pesach Sheni */
|
|
96
|
-
readonly PESACH_SHENI: "Pesach Sheni";
|
|
97
|
-
/** Pesach VII */
|
|
98
|
-
readonly PESACH_VII: "Pesach VII";
|
|
99
|
-
/** Pesach VIII */
|
|
100
|
-
readonly PESACH_VIII: "Pesach VIII";
|
|
101
|
-
/** Pesach VI (CH''M) */
|
|
102
|
-
readonly PESACH_VI_CHM: "Pesach VI (CH''M)";
|
|
103
|
-
/** Pesach V (CH''M) */
|
|
104
|
-
readonly PESACH_V_CHM: "Pesach V (CH''M)";
|
|
105
|
-
/** Purim */
|
|
106
|
-
readonly PURIM: "Purim";
|
|
107
|
-
/** Rosh Hashana II */
|
|
108
|
-
readonly ROSH_HASHANA_II: "Rosh Hashana II";
|
|
109
|
-
/** Rosh Hashana LaBehemot */
|
|
110
|
-
readonly ROSH_HASHANA_LABEHEMOT: "Rosh Hashana LaBehemot";
|
|
111
|
-
/** Shavuot */
|
|
112
|
-
readonly SHAVUOT: "Shavuot";
|
|
113
|
-
/** Shavuot I */
|
|
114
|
-
readonly SHAVUOT_I: "Shavuot I";
|
|
115
|
-
/** Shavuot II */
|
|
116
|
-
readonly SHAVUOT_II: "Shavuot II";
|
|
117
|
-
/** Shmini Atzeret */
|
|
118
|
-
readonly SHMINI_ATZERET: "Shmini Atzeret";
|
|
119
|
-
/** Shushan Purim */
|
|
120
|
-
readonly SHUSHAN_PURIM: "Shushan Purim";
|
|
121
|
-
/** Sigd */
|
|
122
|
-
readonly SIGD: "Sigd";
|
|
123
|
-
/** Simchat Torah */
|
|
124
|
-
readonly SIMCHAT_TORAH: "Simchat Torah";
|
|
125
|
-
/** Sukkot I */
|
|
126
|
-
readonly SUKKOT_I: "Sukkot I";
|
|
127
|
-
/** Sukkot II */
|
|
128
|
-
readonly SUKKOT_II: "Sukkot II";
|
|
129
|
-
/** Sukkot III (CH''M) */
|
|
130
|
-
readonly SUKKOT_III_CHM: "Sukkot III (CH''M)";
|
|
131
|
-
/** Sukkot II (CH''M) */
|
|
132
|
-
readonly SUKKOT_II_CHM: "Sukkot II (CH''M)";
|
|
133
|
-
/** Sukkot IV (CH''M) */
|
|
134
|
-
readonly SUKKOT_IV_CHM: "Sukkot IV (CH''M)";
|
|
135
|
-
/** Sukkot VII (Hoshana Raba) */
|
|
136
|
-
readonly SUKKOT_VII_HOSHANA_RABA: "Sukkot VII (Hoshana Raba)";
|
|
137
|
-
/** Sukkot VI (CH''M) */
|
|
138
|
-
readonly SUKKOT_VI_CHM: "Sukkot VI (CH''M)";
|
|
139
|
-
/** Sukkot V (CH''M) */
|
|
140
|
-
readonly SUKKOT_V_CHM: "Sukkot V (CH''M)";
|
|
141
|
-
/** Tu B\'Av */
|
|
142
|
-
readonly TU_BAV: "Tu B'Av";
|
|
143
|
-
/** Tu BiShvat */
|
|
144
|
-
readonly TU_BISHVAT: "Tu BiShvat";
|
|
145
|
-
/** Yitzhak Rabin Memorial Day */
|
|
146
|
-
readonly YITZHAK_RABIN_MEMORIAL_DAY: "Yitzhak Rabin Memorial Day";
|
|
147
|
-
/** Yom HaAliyah */
|
|
148
|
-
readonly YOM_HAALIYAH: "Yom HaAliyah";
|
|
149
|
-
/** Yom HaAliyah School Observance */
|
|
150
|
-
readonly YOM_HAALIYAH_SCHOOL_OBSERVANCE: "Yom HaAliyah School Observance";
|
|
151
|
-
/** Yom Kippur */
|
|
152
|
-
readonly YOM_KIPPUR: "Yom Kippur";
|
|
153
|
-
/** Yom Yerushalayim */
|
|
154
|
-
readonly YOM_YERUSHALAYIM: "Yom Yerushalayim";
|
|
155
|
-
};
|
|
156
|
-
export interface Holiday {
|
|
157
|
-
mm: number;
|
|
158
|
-
dd: number;
|
|
159
|
-
desc: string;
|
|
160
|
-
flags: number;
|
|
161
|
-
chmDay?: number;
|
|
162
|
-
emoji?: string;
|
|
163
|
-
}
|
|
164
|
-
export declare const staticHolidays: Holiday[];
|
|
165
|
-
export interface ModernHoliday {
|
|
166
|
-
firstYear: number;
|
|
167
|
-
mm: number;
|
|
168
|
-
dd: number;
|
|
169
|
-
desc: string;
|
|
170
|
-
chul?: boolean;
|
|
171
|
-
suppressEmoji?: boolean;
|
|
172
|
-
satPostponeToSun?: boolean;
|
|
173
|
-
friPostponeToSun?: boolean;
|
|
174
|
-
friSatMovetoThu?: boolean;
|
|
175
|
-
}
|
|
176
|
-
export declare const staticModernHolidays: ModernHoliday[];
|
package/dist/tachanun.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { HDate } from '@hebcal/hdate';
|
|
2
|
-
/**
|
|
3
|
-
* Is *tachanun* said today?
|
|
4
|
-
*/
|
|
5
|
-
export type TachanunResult = {
|
|
6
|
-
/** Tachanun is said at Shacharit */
|
|
7
|
-
shacharit: boolean;
|
|
8
|
-
/** Tachanun is said at Mincha */
|
|
9
|
-
mincha: boolean;
|
|
10
|
-
/** All congregations say Tachanun on the day */
|
|
11
|
-
allCongs: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
|
|
15
|
-
*
|
|
16
|
-
* Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
|
|
17
|
-
* Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
|
|
18
|
-
* Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
|
|
19
|
-
* Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
|
|
20
|
-
*
|
|
21
|
-
* In some congregations Tachanun is not said until from Rosh Chodesh Sivan
|
|
22
|
-
* until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
|
|
23
|
-
* Yom Ha'atzmaut, and Yom Yerushalayim.
|
|
24
|
-
*
|
|
25
|
-
* Tachanun is not said at Mincha on days before it is not said at Shacharit.
|
|
26
|
-
*
|
|
27
|
-
* Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
|
|
28
|
-
*/
|
|
29
|
-
export declare function tachanun(hdate: HDate, il: boolean): TachanunResult;
|
package/dist/zmanim.d.ts
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import 'temporal-polyfill/global';
|
|
2
|
-
import { GeoLocation } from '@hebcal/noaa';
|
|
3
|
-
import { HDate } from '@hebcal/hdate';
|
|
4
|
-
/**
|
|
5
|
-
* Calculate halachic times (zmanim / זְמַנִּים) for a given day and location.
|
|
6
|
-
* Calculations are available for tzeit / tzais (nightfall),
|
|
7
|
-
* shkiah (sunset) and more.
|
|
8
|
-
*
|
|
9
|
-
* Zmanim are estimated using an algorithm published by the US National Oceanic
|
|
10
|
-
* and Atmospheric Administration. The NOAA solar calculator is based on equations
|
|
11
|
-
* from _Astronomical Algorithms_ by Jean Meeus.
|
|
12
|
-
*
|
|
13
|
-
* The sunrise and sunset results are theoretically accurate to within a minute for
|
|
14
|
-
* locations between +/- 72° latitude, and within 10 minutes outside of those latitudes.
|
|
15
|
-
* However, due to variations in atmospheric composition, temperature, pressure and
|
|
16
|
-
* conditions, observed values may vary from calculations.
|
|
17
|
-
* https://gml.noaa.gov/grad/solcalc/calcdetails.html
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* const {GeoLocation, Zmanim} = require('@hebcal/core');
|
|
21
|
-
* const latitude = 41.822232;
|
|
22
|
-
* const longitude = -71.448292;
|
|
23
|
-
* const tzid = 'America/New_York';
|
|
24
|
-
* const friday = new Date(2023, 8, 8);
|
|
25
|
-
* const gloc = new GeoLocation(null, latitude, longitude, 0, tzid);
|
|
26
|
-
* const zmanim = new Zmanim(gloc, friday, false);
|
|
27
|
-
* const candleLighting = zmanim.sunsetOffset(-18, true);
|
|
28
|
-
* const timeStr = Zmanim.formatISOWithTimeZone(tzid, candleLighting);
|
|
29
|
-
*/
|
|
30
|
-
export declare class Zmanim {
|
|
31
|
-
private readonly date;
|
|
32
|
-
private readonly gloc;
|
|
33
|
-
private readonly noaa;
|
|
34
|
-
private useElevation;
|
|
35
|
-
/**
|
|
36
|
-
* Initialize a Zmanim instance.
|
|
37
|
-
* @param gloc GeoLocation including latitude, longitude, and timezone
|
|
38
|
-
* @param date Regular or Hebrew Date. If `date` is a regular `Date`,
|
|
39
|
-
* hours, minutes, seconds and milliseconds are ignored.
|
|
40
|
-
* @param useElevation use elevation for calculations (default `false`).
|
|
41
|
-
* If `true`, use elevation to affect the calculation of all sunrise/sunset based
|
|
42
|
-
* zmanim. Note: there are some zmanim such as degree-based zmanim that are driven
|
|
43
|
-
* by the amount of light in the sky and are not impacted by elevation.
|
|
44
|
-
* These zmanim intentionally do not support elevation adjustment.
|
|
45
|
-
*/
|
|
46
|
-
constructor(gloc: GeoLocation, date: Date | HDate, useElevation: boolean);
|
|
47
|
-
/**
|
|
48
|
-
* Returns `true` if elevation adjustment is enabled
|
|
49
|
-
* for zmanim support elevation adjustment
|
|
50
|
-
*/
|
|
51
|
-
getUseElevation(): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Enables or disables elevation adjustment for zmanim support elevation adjustment
|
|
54
|
-
* @param useElevation
|
|
55
|
-
*/
|
|
56
|
-
setUseElevation(useElevation: boolean): void;
|
|
57
|
-
/**
|
|
58
|
-
* Convenience function to get the time when sun is above or below the horizon
|
|
59
|
-
* for a certain angle (in degrees).
|
|
60
|
-
* This function does not support elevation adjustment.
|
|
61
|
-
* @param angle
|
|
62
|
-
* @param rising
|
|
63
|
-
*/
|
|
64
|
-
timeAtAngle(angle: number, rising: boolean): Date;
|
|
65
|
-
/**
|
|
66
|
-
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon)
|
|
67
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
68
|
-
*/
|
|
69
|
-
sunrise(): Date;
|
|
70
|
-
/**
|
|
71
|
-
* Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon).
|
|
72
|
-
* This function does not support elevation adjustment.
|
|
73
|
-
*/
|
|
74
|
-
seaLevelSunrise(): Date;
|
|
75
|
-
/**
|
|
76
|
-
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
77
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
78
|
-
*/
|
|
79
|
-
sunset(): Date;
|
|
80
|
-
/**
|
|
81
|
-
* When the upper edge of the Sun disappears below the horizon (0.833° below horizon).
|
|
82
|
-
* This function does not support elevation adjustment.
|
|
83
|
-
*/
|
|
84
|
-
seaLevelSunset(): Date;
|
|
85
|
-
/**
|
|
86
|
-
* Civil dawn; Sun is 6° below the horizon in the morning.
|
|
87
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
88
|
-
* the result is not impacted by elevation.
|
|
89
|
-
*/
|
|
90
|
-
dawn(): Date;
|
|
91
|
-
/**
|
|
92
|
-
* Civil dusk; Sun is 6° below the horizon in the evening.
|
|
93
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
94
|
-
* the result is not impacted by elevation.
|
|
95
|
-
*/
|
|
96
|
-
dusk(): Date;
|
|
97
|
-
/**
|
|
98
|
-
* Returns sunset for the previous day.
|
|
99
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
100
|
-
*/
|
|
101
|
-
gregEve(): Date;
|
|
102
|
-
/**
|
|
103
|
-
* @private
|
|
104
|
-
*/
|
|
105
|
-
nightHour(): number;
|
|
106
|
-
/**
|
|
107
|
-
* Midday – Chatzot; Sunrise plus 6 halachic hours
|
|
108
|
-
*/
|
|
109
|
-
chatzot(): Date;
|
|
110
|
-
/**
|
|
111
|
-
* Midnight – Chatzot; Sunset plus 6 halachic hours.
|
|
112
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
113
|
-
*/
|
|
114
|
-
chatzotNight(): Date;
|
|
115
|
-
/**
|
|
116
|
-
* Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning.
|
|
117
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
118
|
-
* the result is not impacted by elevation.
|
|
119
|
-
*/
|
|
120
|
-
alotHaShachar(): Date;
|
|
121
|
-
/**
|
|
122
|
-
* Dawn – Alot haShachar; calculated as 72 minutes before sunrise or
|
|
123
|
-
* sea level sunrise.
|
|
124
|
-
*/
|
|
125
|
-
alotHaShachar72(): Date;
|
|
126
|
-
/**
|
|
127
|
-
* Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning.
|
|
128
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
129
|
-
* the result is not impacted by elevation.
|
|
130
|
-
*/
|
|
131
|
-
misheyakir(): Date;
|
|
132
|
-
/**
|
|
133
|
-
* Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning.
|
|
134
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
135
|
-
* the result is not impacted by elevation.
|
|
136
|
-
*/
|
|
137
|
-
misheyakirMachmir(): Date;
|
|
138
|
-
/**
|
|
139
|
-
* Utility method for using elevation-aware sunrise/sunset
|
|
140
|
-
* @private
|
|
141
|
-
* @param hours
|
|
142
|
-
*/
|
|
143
|
-
getShaahZmanisBasedZman(hours: number): Date;
|
|
144
|
-
/**
|
|
145
|
-
* Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra.
|
|
146
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
147
|
-
*/
|
|
148
|
-
sofZmanShma(): Date;
|
|
149
|
-
/**
|
|
150
|
-
* Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra.
|
|
151
|
-
*
|
|
152
|
-
* This method returns the latest *zman tfila* (time to recite shema in the morning)
|
|
153
|
-
* that is 4 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise
|
|
154
|
-
* (depending on the `useElevation` setting), according
|
|
155
|
-
* to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
|
|
156
|
-
*
|
|
157
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
158
|
-
*/
|
|
159
|
-
sofZmanTfilla(): Date;
|
|
160
|
-
/**
|
|
161
|
-
* Returns an array with alot (Date) and ms in hour (number)
|
|
162
|
-
* @private
|
|
163
|
-
*/
|
|
164
|
-
getTemporalHour72(forceSeaLevel: boolean): [Date, number];
|
|
165
|
-
/**
|
|
166
|
-
* Returns an array with alot (Date) and ms in hour (number)
|
|
167
|
-
* @private
|
|
168
|
-
*/
|
|
169
|
-
getTemporalHourByDeg(angle: number): [Date, number];
|
|
170
|
-
/**
|
|
171
|
-
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
172
|
-
* Based on the opinion of the MGA that the day is calculated from
|
|
173
|
-
* dawn being fixed 72 minutes before sea-level sunrise, and nightfall is fixed
|
|
174
|
-
* 72 minutes after sea-level sunset.
|
|
175
|
-
*/
|
|
176
|
-
sofZmanShmaMGA(): Date;
|
|
177
|
-
/**
|
|
178
|
-
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
179
|
-
* Based on the opinion of the MGA that the day is calculated from
|
|
180
|
-
* dawn to nightfall with both being 16.1° below the horizon.
|
|
181
|
-
*/
|
|
182
|
-
sofZmanShmaMGA16Point1(): Date;
|
|
183
|
-
/**
|
|
184
|
-
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
185
|
-
* Based on the opinion of the MGA that the day is calculated from
|
|
186
|
-
* dawn to nightfall with both being 19.8° below the horizon.
|
|
187
|
-
*
|
|
188
|
-
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
189
|
-
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
190
|
-
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
191
|
-
*/
|
|
192
|
-
sofZmanShmaMGA19Point8(): Date;
|
|
193
|
-
/**
|
|
194
|
-
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham
|
|
195
|
-
*/
|
|
196
|
-
sofZmanTfillaMGA(): Date;
|
|
197
|
-
/**
|
|
198
|
-
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
199
|
-
* Based on the opinion of the MGA that the day is calculated from
|
|
200
|
-
* dawn to nightfall with both being 16.1° below the horizon.
|
|
201
|
-
*/
|
|
202
|
-
sofZmanTfillaMGA16Point1(): Date;
|
|
203
|
-
/**
|
|
204
|
-
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
205
|
-
* Based on the opinion of the MGA that the day is calculated from
|
|
206
|
-
* dawn to nightfall with both being 19.8° below the horizon.
|
|
207
|
-
*
|
|
208
|
-
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
209
|
-
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
210
|
-
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
211
|
-
*/
|
|
212
|
-
sofZmanTfillaMGA19Point8(): Date;
|
|
213
|
-
/**
|
|
214
|
-
* Earliest Mincha – Mincha Gedola (GRA); Sunrise plus 6.5 halachic hours.
|
|
215
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
216
|
-
*
|
|
217
|
-
* This method returns the latest mincha gedola, the earliest time one can pray mincha
|
|
218
|
-
* that is 6.5 shaos zmaniyos (solar hours) after sunrise or sea level sunrise
|
|
219
|
-
* (depending on the `useElevation` setting), according
|
|
220
|
-
* to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
|
|
221
|
-
*
|
|
222
|
-
* The Ramba"m is of the opinion that it is better to delay *mincha* until
|
|
223
|
-
* *mincha ketana* while the Ra"sh, Tur, GRA and others are of the
|
|
224
|
-
* opinion that *mincha* can be prayed *lechatchila* starting at *mincha gedola*.
|
|
225
|
-
*/
|
|
226
|
-
minchaGedola(): Date;
|
|
227
|
-
/**
|
|
228
|
-
* Earliest Mincha – Mincha Gedola (MGA); Sunrise plus 6.5 halachic hours.
|
|
229
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
230
|
-
*
|
|
231
|
-
* This method returns the time of *mincha gedola* according to the Magen Avraham
|
|
232
|
-
* with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.
|
|
233
|
-
* This is the earliest time to pray *mincha*.
|
|
234
|
-
*/
|
|
235
|
-
minchaGedolaMGA(): Date;
|
|
236
|
-
/**
|
|
237
|
-
* Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours.
|
|
238
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
239
|
-
*
|
|
240
|
-
* This method returns *mincha ketana*, the preferred earliest time to pray *mincha* in the
|
|
241
|
-
* opinion of the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others,
|
|
242
|
-
* that is 9.5 *shaos zmaniyos* (solar hours) after sunrise or sea level sunrise
|
|
243
|
-
* (depending on the `useElevation` setting), according
|
|
244
|
-
* to the [GRA](https://en.wikipedia.org/wiki/Vilna_Gaon).
|
|
245
|
-
*/
|
|
246
|
-
minchaKetana(): Date;
|
|
247
|
-
/**
|
|
248
|
-
* This method returns the time of *mincha ketana* according to the Magen Avraham
|
|
249
|
-
* with the day starting 72 minutes before sunrise and ending 72 minutes after sunset.
|
|
250
|
-
* This is the preferred earliest time to pray *mincha* according to the opinion of
|
|
251
|
-
* the [Rambam](https://en.wikipedia.org/wiki/Maimonides) and others.
|
|
252
|
-
*
|
|
253
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
254
|
-
*/
|
|
255
|
-
minchaKetanaMGA(): Date;
|
|
256
|
-
/**
|
|
257
|
-
* Plag haMincha; Sunrise plus 10.75 halachic hours.
|
|
258
|
-
* If elevation is enabled, this function will include elevation in the calculation.
|
|
259
|
-
*/
|
|
260
|
-
plagHaMincha(): Date;
|
|
261
|
-
/**
|
|
262
|
-
* @param [angle=8.5] optional time for solar depression.
|
|
263
|
-
* Default is 8.5 degrees for 3 small stars, use 7.083 degrees for 3 medium-sized stars.
|
|
264
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
265
|
-
* the result is not impacted by elevation.
|
|
266
|
-
*/
|
|
267
|
-
tzeit(angle?: number): Date;
|
|
268
|
-
/**
|
|
269
|
-
* Alias for sunrise
|
|
270
|
-
*/
|
|
271
|
-
neitzHaChama(): Date;
|
|
272
|
-
/**
|
|
273
|
-
* Alias for sunset
|
|
274
|
-
*/
|
|
275
|
-
shkiah(): Date;
|
|
276
|
-
/**
|
|
277
|
-
* Rabbeinu Tam holds that bein hashmashos is a specific time
|
|
278
|
-
* between sunset and tzeis hakochavim.
|
|
279
|
-
* One opinion on how to calculate this time is that
|
|
280
|
-
* it is 13.5 minutes before tzies 7.083.
|
|
281
|
-
* Because degree-based functions estimate the amount of light in the sky,
|
|
282
|
-
* the result is not impacted by elevation.
|
|
283
|
-
*/
|
|
284
|
-
beinHaShmashos(): Date;
|
|
285
|
-
/**
|
|
286
|
-
* Uses timeFormat to return a date like '20:34'.
|
|
287
|
-
* Returns `XX:XX` if the date is invalid.
|
|
288
|
-
*/
|
|
289
|
-
static formatTime(dt: Date, timeFormat: Intl.DateTimeFormat): string;
|
|
290
|
-
/**
|
|
291
|
-
* Discards seconds, rounding to nearest minute.
|
|
292
|
-
* @param dt
|
|
293
|
-
*/
|
|
294
|
-
static roundTime(dt: Date): Date;
|
|
295
|
-
/**
|
|
296
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
297
|
-
* @param tzid
|
|
298
|
-
* @param date
|
|
299
|
-
*/
|
|
300
|
-
static timeZoneOffset(tzid: string, date: Date): string;
|
|
301
|
-
/**
|
|
302
|
-
* Returns a string like "2022-04-01T13:06:00-11:00"
|
|
303
|
-
* @param tzid
|
|
304
|
-
* @param date
|
|
305
|
-
*/
|
|
306
|
-
static formatISOWithTimeZone(tzid: string, date: Date): string;
|
|
307
|
-
/**
|
|
308
|
-
* Returns sunrise + `offset` minutes (either positive or negative).
|
|
309
|
-
* If elevation is enabled, this function will include elevation in the calculation
|
|
310
|
-
* unless `forceSeaLevel` is `true`.
|
|
311
|
-
* @param offset minutes
|
|
312
|
-
* @param roundMinute round time to nearest minute (default true)
|
|
313
|
-
* @param forceSeaLevel use sea-level sunrise (default false)
|
|
314
|
-
*/
|
|
315
|
-
sunriseOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
|
|
316
|
-
/**
|
|
317
|
-
* Returns sunset + `offset` minutes (either positive or negative).
|
|
318
|
-
* If elevation is enabled, this function will include elevation in the calculation
|
|
319
|
-
* unless `forceSeaLevel` is `true`.
|
|
320
|
-
* @param offset minutes
|
|
321
|
-
* @param roundMinute round time to nearest minute (default true)
|
|
322
|
-
* @param forceSeaLevel use sea-level sunset (default false)
|
|
323
|
-
*/
|
|
324
|
-
sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
|
|
325
|
-
/**
|
|
326
|
-
* Returns the Hebrew date relative to the specified location and Gregorian date,
|
|
327
|
-
* taking into consideration whether the time is before or after sunset.
|
|
328
|
-
*
|
|
329
|
-
* For example, if the given date and is `2024-09-22T10:35` (before sunset), and
|
|
330
|
-
* sunset for the specified location is **19:04**, then this function would
|
|
331
|
-
* return a Hebrew date of `19th of Elul, 5784`.
|
|
332
|
-
* If the given date is the same Gregorian day after sunset
|
|
333
|
-
* (for example `2024-09-22T20:07`), this function would return a
|
|
334
|
-
* Hebrew date of `20th of Elul, 5784`.
|
|
335
|
-
* @example
|
|
336
|
-
* const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');
|
|
337
|
-
* const latitude = 48.85341;
|
|
338
|
-
* const longitude = 2.3488;
|
|
339
|
-
* const timezone = 'Europe/Paris';
|
|
340
|
-
* const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);
|
|
341
|
-
* const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);
|
|
342
|
-
* console.log(before.toString()); // '19 Elul 5784'
|
|
343
|
-
* const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);
|
|
344
|
-
* console.log(after.toString()); // '20 Elul 5784'
|
|
345
|
-
*/
|
|
346
|
-
static makeSunsetAwareHDate(gloc: GeoLocation, date: Date, useElevation: boolean): HDate;
|
|
347
|
-
}
|