Module org.holiday.calendar.apac
module org.holiday.calendar.apac
Holiday Calendar APAC module.
Provides holiday calendar implementations and observances for Asia-Pacific
countries, including lunar, Islamic, and Hindu calendar-based holidays.
Supports Singapore national (SG), Singapore Exchange (XSES) — including its
Christmas Eve/New Year's Eve EARLY_CLOSE half-day sessions —
Singapore MAS MEPS+ (SGD), Japan national (JP), Bank of Japan (JPY),
People's Bank of China (CNY), and China national (CN). Non-Gregorian dates
are computed via Time4J's
ChineseCalendar (Chinese New Year) or sourced from officially
gazetted lookup tables (Vesak Day, Hari Raya Puasa/Haji, Deepavali) loaded
via CsvObservanceLoader.
This module's HolidayCalendarService providers are consumed via
HolidayCalendarFactory in the core module:
HolidayCalendar sgx = new HolidayCalendarFactory().create("XSES");
List<HolidayDate> earlyCloses2026 = sgx.calculateEarlyCloses(2026);
-
Packages
ExportsPackageDescriptionImplementation ofObservancefor Singapore's Hindu public holiday,Deepavali(Diwali), gazetted annually by the Singapore government and loaded from a classpath CSV lookup table viaCsvObservanceLoader.Implementations ofObservancefor Singapore's Islamic public holidays:HariRayaPuasa(Eid al-Fitr) andHariRayaHaji(Eid al-Adha).Implementations ofObservancefor Japanese national public holidays:ComingOfAgeDay,VernalEquinoxDay,MarineDay,RespectForTheAgedDay,AutumnalEquinoxDay,SportsDay, andEmperorsBirthday(whose date changes with the reigning Emperor).Implementations ofObservancefor Chinese lunisolar-calendar holidays: Chinese New Year (ChineseNewYearDayparameterized by day number 1–7, plus the convenienceChineseNewYearFirstDayandChineseNewYearSecondDay),QingmingFestival,DragonBoatFestival,MidAutumnFestival, andVesakDay.Implementations ofObservancefor holidays observed exclusively on Singapore Exchange (SGX).