commenthol / date-holidays

worldwide holidays
https://commenthol.github.io/date-holidays/
Other
911 stars 236 forks source link

HU rest days to create 4 day weekends #379

Open lucasra1 opened 1 year ago

lucasra1 commented 1 year ago

if a bank holiday falls on a Tuesday or a Thursday, the preceding Monday or the following Friday will become a rest day to create a 4-day long weekend.

https://helpers.hu/staffing-solutions/bank-holidays-in-2022-hungary/

Is there a way to reflect that in this library?

commenthol commented 1 year ago

Hi @lucasra1 , There is a rule Holiday based on other holidays (bridge days) which requires gregorian dates. But I don't think this will fit your usecase, which means we would need to implement this "new" rule in date-holidays-parser. Until then it would be nice if you could consider adding the bridge holidays to HU.yaml using fixed dates.