Anonymous user
Talk:Holidays related to Easter: Difference between revisions
m
→Description
m (→Description) |
|||
(One intermediate revision by the same user not shown) | |||
Line 58:
if (church == 1) {
let d = (year % 19 * 19 + 15) % 30;
if (calendar == 1)
return d > 9 ? [d - 9, 4] : [22 + d, 3];
Line 91:
function getHolidaysDates(year, church) {
const
return year + ": " +
holidays.map(h => {
d.setDate(d.getDate() + h[1] - 1);
return h[0] + ": " + new Intl.DateTimeFormat("ru", { month: "numeric", day: "numeric" }).format(d);
|