Skip to content
Merged
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 @@ -1028,6 +1028,7 @@ static ImmutableHolidayCalendar generateJohannesburg() {
// http://www.ucmsgroup.hu/newsletter/public-holiday-and-related-work-schedule-changes-in-2015/
// http://www.ucmsgroup.hu/newsletter/public-holiday-and-related-work-schedule-changes-in-2014/
// https://www.bse.hu/Products-and-Services/Trading-information/tranding-calendar-2019
// https://www.bse.hu/Products-and-Services/Trading-information/trading-calendar-2020
static ImmutableHolidayCalendar generateBudapest() {
List<LocalDate> holidays = new ArrayList<>(2000);
Set<LocalDate> workDays = new HashSet<>(500);
Expand All @@ -1047,7 +1048,10 @@ static ImmutableHolidayCalendar generateBudapest() {
// pentecost monday
holidays.add(easter(year).plusDays(50));
// state foundation day
addDateWithHungarianBridging(date(year, 8, 20), 0, -2, holidays, workDays);
// in 2015 the working saturday was 2 weeks before, in 2020 it was 1 week after
// unclear what the logic behind this is,
int foundationDayThuRelativeWeeks = year == 2020 ? 1 : -2;
addDateWithHungarianBridging(date(year, 8, 20), 0 , foundationDayThuRelativeWeeks, holidays, workDays);
// national day
addDateWithHungarianBridging(date(year, 10, 23), 0, -1, holidays, workDays);
// all saints day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,9 @@ public static Object[][] data_hubu() {
{2016, mds(2016, md(1, 1), md(3, 14), md(3, 15), md(3, 28), md(5, 1), md(5, 16),
md(10, 31), md(11, 1), md(12, 24), md(12, 25), md(12, 26)),
ImmutableList.of(date(2016, 3, 5), date(2016, 10, 15))},
{2020, mds(2020, md(1, 1), md(3, 15), md(4, 10), md(4, 13), md(5, 1), md(6, 1),
md(8, 20), md(8, 21), md(10, 23), md(12, 24), md(12, 25), md(12, 26)),
ImmutableList.of(date(2020, 8, 29), date(2020, 12, 12))},
};
}

Expand Down