Definition at line 35 of file unitedarabemirates.hpp.
◆ name()
std::string name |
( |
| ) |
const |
|
override |
◆ isWeekend()
bool isWeekend |
( |
Weekday |
| ) |
const |
|
override |
Definition at line 36 of file unitedarabemirates.cpp.
36 {
37 return w == QuantLib::Saturday || w == QuantLib::Sunday ;
38}
◆ isBusinessDay()
bool isBusinessDay |
( |
const Date & |
| ) |
const |
|
override |
Definition at line 40 of file unitedarabemirates.cpp.
40 {
41 Day n = d.dayOfMonth();
42 Month m = d.month();
43
44 if (isTrueWeekend(d) ||
45 (n==1 && m == Jan) ||
46 (n==2 && m == Dec))
47 return false;
48 else
49 return true;
50}