java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.islamic.HariRayaHaji
All Implemented Interfaces:
Function<Integer,LocalDate>, Predicate<Integer>, Observance

public class HariRayaHaji extends AbstractObservance
Observance of Hari Raya Haji (Eid al-Adha), the Feast of Sacrifice on the 10th day of Dhu al-Hijjah. 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 public holiday gazette announcements. Dates for 2031–2055 are derived from the tabular Islamic calendar (Küçük 30-year leap cycle, 10 Dhu al-Hijjah, SGT), pending official MUIS (Majlis Ugama Islam Singapura) gazette confirmation. All entries should be verified against MUIS announcements as Singapore approaches each year.

2039 contains two 10 Dhu al-Hijjah occurrences (5 Jan AH 1460; 25 Dec AH 1461); 5 Jan is used as Singapore's gazetted public holiday per MUIS convention. As a result, the 2040 entry falls in December.

Author:
Dave Joyce
  • Constructor Details

    • HariRayaHaji

      public HariRayaHaji()
  • Method Details

    • computeDate

      protected LocalDate computeDate(int year)
      Description copied from class: AbstractObservance
      Compute the date for this observance in the given year. Only called when AbstractObservance.isValidYear(int) returns true.
      Specified by:
      computeDate in class AbstractObservance
      Parameters:
      year - the year for which to compute the date
      Returns:
      computed holiday date
    • isValidYear

      protected boolean isValidYear(int year)
      Description copied from class: AbstractObservance
      Determine whether this observance applies in the given year. Defaults to true (all years are valid).
      Overrides:
      isValidYear in class AbstractObservance
      Parameters:
      year - the year to test
      Returns:
      true if this observance applies