2021-12-11 02:00:35 -08:00
|
|
|
const {Event, day, week, month, dayYear, EventLevel, Day} = require("../../src/calendar/helpers");
|
|
|
|
|
2021-09-16 03:52:10 -07:00
|
|
|
module.exports = [
|
2021-08-14 07:22:30 -07:00
|
|
|
|
2021-12-23 08:22:02 -08:00
|
|
|
// --- months ---
|
2021-12-11 02:00:35 -08:00
|
|
|
new Event('LHBT-geschiedenismaand', 'Progress Pride', 2, month, EventLevel.Month),
|
|
|
|
|
2021-12-23 08:22:02 -08:00
|
|
|
// --- static date ---
|
2021-12-11 02:00:35 -08:00
|
|
|
new Event('Marriage Equality Day (Nederland)', '_hrc', 4, day(1), EventLevel.Day),
|
|
|
|
new Event('Marriage Equality Day (België)', '_hrc', 6, day(1), EventLevel.Day),
|
|
|
|
|
2021-12-23 08:22:02 -08:00
|
|
|
// --- dynamic date ---
|
|
|
|
|
|
|
|
// second Friday of December
|
2021-12-11 02:00:35 -08:00
|
|
|
new Event('Paarse Vrijdag (Nederland)', null, 12, function* (monthDays) {
|
|
|
|
let fridays = 0;
|
|
|
|
for (let d of monthDays) {
|
|
|
|
if (d.dayOfWeek === 5) {
|
|
|
|
fridays++;
|
|
|
|
if (fridays === 2) {
|
|
|
|
yield d;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, EventLevel.Day),
|
|
|
|
|
2021-08-14 07:22:30 -07:00
|
|
|
];
|