UNPKG

jewish-calendar

Version:

A comprehensive Jewish Calendar library for date conversion and calculations

21 lines (20 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RoshHashanah = void 0; const rosh_chodesh_1 = require("./rosh-chodesh"); class RoshHashanah extends rosh_chodesh_1.RoshChodesh { constructor(year) { super(year, 0); } getWeekDay() { let day = this.molad.getDay(); if (this.molad.getHour() >= 18) { day++; } if (day === 1 || day === 4 || day === 6) { day++; } return day; } } exports.RoshHashanah = RoshHashanah;