Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private static void usCommon(
}
// juneteenth (seems like it wasn't widely applied in 2021)
if (year >= 2022) {
holidays.add(bumpToFriOrMon(date(year, 6, 19)));
holidays.add(bumpBack ? bumpToFriOrMon(date(year, 6, 19)) : bumpSunToMon(date(year, 6, 19)));
}
// labor day
holidays.add(date(year, 9, 1).with(firstInMonth(MONDAY)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,15 @@ public void test_nyse(int year, List<LocalDate> holidays) {
}
}

@Test
public void test_usJuneteenthSaturdayObservance() {
LocalDate observedDate = LocalDate.of(2027, 6, 18);
assertThat(USGS.isHoliday(observedDate)).isTrue();
assertThat(NYSE.isHoliday(observedDate)).isTrue();
assertThat(USNY.isHoliday(observedDate)).isFalse();
assertThat(NYFD.isHoliday(observedDate)).isFalse();
}

//-------------------------------------------------------------------------
private static final HolidayCalendar JPTO = GlobalHolidayCalendars.generateTokyo();

Expand Down