Module org.holiday.calendar.apac
Class HariRayaPuasa
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.islamic.HariRayaPuasa
Observance of Hari Raya Puasa (Eid al-Fitr), marking the end of Ramadan.
In Singapore, the observed date is officially gazetted by the government
and follows the local lunar sighting, which may differ from tabular
Islamic calendar calculations.
Dates for 2019–2030 are sourced from official Singapore Ministry of Manpower (MOM) public holiday gazette notifications and MUIS (Majlis Ugama Islam Singapura) announcements. Dates for 2031–2055 are projected from the Umm al-Qura tabular Islamic calendar (1 Shawwal AH, adjusted to SGT via Singapore's Imkan ar-Rukyah +1-day offset); verify against MUIS/MOM gazette announcements at https://data.gov.sg/collections/691/view as each year is officially published.
Note: Gregorian year 2033 contains two Eid al-Fitr occurrences (~January 4 and ~December 24). This map records only the first (January) occurrence; the December occurrence cannot be represented under the single-date-per-year-key design.
- 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
-
HariRayaPuasa
public HariRayaPuasa()
-
-
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
-