Definition at line 33 of file netherlands.hpp.
◆ name()
std::string name |
( |
| ) |
const |
|
override |
◆ isBusinessDay()
bool isBusinessDay |
( |
const Date & |
date | ) |
const |
|
override |
Definition at line 31 of file netherlands.cpp.
31 {
32 Weekday w = date.weekday();
33 Day d = date.dayOfMonth(), dd = date.dayOfYear();
34 Month m = date.month();
35 Year y = date.year();
36 Day em = easterMonday(y);
37 if (isWeekend(w)
38
39 || (d == 1 && m == January)
40
41 || (dd == em - 3)
42
43 || (dd == em)
44
45 || (d == 27 && m == April)
46
47 || (dd == em + 38)
48
49 || (dd == em + 49)
50
51 || (d == 25 && m == December)
52
53 || (d == 26 && m == December))
54 return false;
55 return true;
56}