Module org.holiday.calendar.mena
Class ProphetsBirthday
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.islamic.mena.ProphetsBirthday
Observance of the Prophet's Birthday (Mawlid an-Nabi), commemorating the
birth of the Prophet Muhammad (12 Rabi' al-Awwal AH).
Dates are determined by official moon sighting and cannot be computed algorithmically. Dates for 2024–2026 are sourced from official UAE Securities and Commodities Authority (SCA) and Saudi Exchange (Tadawul) holiday announcements. Dates for 2027–2055 are projected from the Umm al-Qura tabular Islamic calendar; verify against official announcements as each year is published.
Note: Saudi Arabia does not officially observe Mawlid as a public holiday for financial markets; include only when the relevant exchange/regulator confirms it as a closure day.
Date data is loaded at runtime from mawlid-{countryCode}.csv
in this package, where countryCode is the ISO 3166-1 alpha-2 country
code in lower case (e.g. ae, sa).
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.protected booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, test
-
Constructor Details
-
ProphetsBirthday
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-
isValidYear
protected boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-