test2
function festeFeiertage(jahr) {
return [
`${jahr}-01-01`,
`${jahr}-05-01`,
`${jahr}-10-03`,
`${jahr}-12-25`,
`${jahr}-12-26`
];
}
function easter(y) {
const f = Math.floor;
const a = y % 19;
const b = f(y / 100);
const c = y % 100;
const d = f(b / 4);
const e = b % 4;
const g = f((8 * b + 13) / 25);
const h = (19 * a + b - d - g + 15) % 30;
const i = f(c / 4);
const k = c % 4;
const l = (32 + 2 * e + 2 * i - h - k) % 7;
const m = f((a + 11 * h + 22 * l) / 451);
const month = f((h + l - 7 * m + 114) / 31);
const day = ((h + l - 7 * m + 114) % 31) + 1;
return new Date(y, month - 1, day);
}
function addDays(date, days) {
const d = new Date(date);
d.setDate(d.getDate() + days);
return d;
}
function beweglicheFeiertage(jahr) {
const ostersonntag = easter(jahr