Еврейский календарь

Сегодня по еврейскому календарю
Загружаем дату…
Расчёт для Цюриха · данные Hebcal
(function () { var box = document.getElementById(‘mishpucha-hebrew-date’); if (!box || box.dataset.loaded) return; box.dataset.loaded = ‘1’; var tz = ‘Europe/Zurich’; var months = { ‘Nisan’:’Нисан’,’Iyyar’:’Ияр’,’Sivan’:’Сиван’,’Tamuz’:’Тамуз’, ‘Av’:’Ав’,’Elul’:’Элул’,’Tishrei’:’Тишрей’,’Cheshvan’:’Хешван’, ‘Kislev’:’Кислев’,’Tevet’:’Тевет’,»Sh’vat»:’Шват’,’Shvat’:’Шват’, ‘Adar’:’Адар’,’Adar I’:’Адар I’,’Adar II’:’Адар II’ }; function localDate() { var p = new Intl.DateTimeFormat(‘en-CA’,{timeZone:tz,year:’numeric’,month:’2-digit’,day:’2-digit’}).formatToParts(new Date()); var v = {}; p.forEach(function(x){ if(x.type !== ‘literal’) v[x.type] = x.value; }); return v.year + ‘-‘ + v.month + ‘-‘ + v.day; } function showError() { var ru = document.getElementById(‘mishpucha-hebrew-date-ru’); if (ru) ru.textContent = ‘Не удалось загрузить дату’; } var date = localDate(); var zmanUrl = ‘https://www.hebcal.com/zmanim?cfg=json&date=’ + date + ‘&latitude=47.3769&longitude=8.5417&tzid=Europe%2FZurich’; fetch(zmanUrl).then(function(r){ if(!r.ok) throw new Error(‘zmanim’); return r.json(); }) .then(function(z){ var afterSunset = z.times && z.times.sunset && new Date() >= new Date(z.times.sunset); var url = ‘https://www.hebcal.com/converter?cfg=json&g2h=1&date=’ + date + (afterSunset ? ‘&gs=on’ : »); return fetch(url).then(function(r){ if(!r.ok) throw new Error(‘converter’); return r.json(); }); }) .then(function(h){ var ru = document.getElementById(‘mishpucha-hebrew-date-ru’); var he = document.getElementById(‘mishpucha-hebrew-date-he’); if (ru) ru.textContent = h.hd + ‘ ‘ + (months[h.hm] || h.hm) + ‘ ‘ + h.hy; if (he) he.textContent = h.hebrew || »; }).catch(showError); })();
תִּשְׁרֵי Тишрей חֶשְׁוָן Хешван כִּסְלֵו Кислев טֵבֵת Тевет שְׁבָט Шват אֲדָר Адар נִיסָן Нисан אִיָּר Ияр סִיוָן Сиван תַּמּוּז Тамуз אָב Ав אֱלוּל Элул