Class IslamicHolidaysFunctions
Shared Islamic holiday date lookup tables (Eid al-Fitr, Eid al-Adha).
public static class IslamicHolidaysFunctions
- Inheritance
-
IslamicHolidaysFunctions
- Inherited Members
Remarks
For calculating Eid al-Fitr and Eid al-Adha, there are two main approaches (calendars) used in practice, and they sometimes overlap. Umm al-Qura calendar is used by Saudi Arabia (primary user) and some Gulf countries. Moon sighting calendar is used by South Asia, Central Asia, Middle East and North Africa.
QuantLib's functions in namespace MoonSightingMethod; the method stays in the members' names. The tables hold
2026 to 2040: outside them, no date is either feast.
Methods
IsEidAlAdhaByMoonSighting(Date)
Whether a date is Eid al-Adha by the moon sighting method; QuantLib's
MoonSightingMethod::isEidAlAdha.
public static bool IsEidAlAdhaByMoonSighting(Date d)
Parameters
dDateThe date.
Returns
Exceptions
- ArgumentException
disdefault(Date).
IsEidAlFitrByMoonSighting(Date)
Whether a date is Eid al-Fitr by the moon sighting method; QuantLib's
MoonSightingMethod::isEidAlFitr.
public static bool IsEidAlFitrByMoonSighting(Date d)
Parameters
dDateThe date.
Returns
Exceptions
- ArgumentException
disdefault(Date).