python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Zurich half-day holidays in Switzerland

Open dragoon opened this issue 4 years ago • 6 comments

Zurich has 2 half-day holidays every year: Sechseläuten and Knabenschiessen. I wonder if we can somehow include this in the library?

But then not sure how to mark them. I don't know if any other country has something similar so it is worth doing.

dragoon avatar Nov 13 '22 10:11 dragoon

Hi @dragoon thank you! I can't give a final answer to your question, but if there are other countries with similar cases in existence, as of now we surely neither currently manage, nor even know them :-D

This said, to avoid implementing an impacting change for those 2 half days only (which I currently don't see a point in), I would suggest (very trivially..) to manage them just adding a note to their names, such as "Sechseläuten (half day)" or similar.. as we already do with observed holidays, in other words. Not very accurate, while still better than nothing! 👍

dr-prodigy avatar Dec 09 '22 00:12 dr-prodigy

I observe that a similar situation takes place for NYSE, which has so-called reduced trading hours days when it closes at 13:00 (see footnotes at https://www.nyse.com/markets/hours-calendars#holidays).

Having some sort of standardized mechanism to handle those days would be nice and potentially very useful. Maybe add a partial boolean argument to the method, which if set to True will cause partial holidays to be returned as well as the full day ones, and that the partial ones have a label which ends with a country-standardized annotation in brackets (e.g., for NYSE, "Day after Thanksgiving [13:00 close]"?

mborsetti avatar Dec 09 '22 00:12 mborsetti

(+1) We have it in Germany too for Christmas Eve (12-24) and New Years Eve (12-31). Right now, we manually add these edge cases in our application, but support for a flag would be preferred.

alexanderschulze avatar Feb 11 '23 16:02 alexanderschulze

I came from https://github.com/commenthol/date-holidays to check, how the python library is faring, when dealing with shortened workdays. I'm just adding 2 euro cents. The node version has type for every holiday https://github.com/commenthol/date-holidays#types-of-holidays I have a vague feeling, that we need more attributes to holidays. Is it a shortened day or what kind of holiday this is. How many hours is the workday shortened or at what time does the workday end. Use case: Baltic states use shortened workdays before some public holidays. Estonian rule is simple, shorten the workday by 3 hours. The shortened days are fixed (23.02, 22.06, 23.12 and 31.12). Latvia and Lithuania shorten the workday by 1 hour, but they have bizarre rules, how the public holidays are moving from weekend to weekdays and thus, the shortened days are also not fixed.

antti-begin avatar Feb 15 '23 13:02 antti-begin

Knabenschiessen seems wrong in 2026, it should only be listed on 14.09.26 as a half-day, not also on 12.09.26 and 13.09.26. Additionally it's actually only a holiday for the city of Zurich, but that can't be modeled in the library.

https://www.stadt-zuerich.ch/de/politik-und-verwaltung/arbeiten-bei-der-stadt/gut-zu-wissen/ferien-urlaub/feiertage-betriebsferientage-bft.html

onasipim avatar Apr 20 '26 18:04 onasipim

Knabenschiessen seems wrong in 2026, it should only be listed on 14.09.26 as a half-day, not also on 12.09.26 and 13.09.26. Additionally it's actually only a holiday for the city of Zurich, but that can't be modeled in the library.

https://www.stadt-zuerich.ch/de/politik-und-verwaltung/arbeiten-bei-der-stadt/gut-zu-wissen/ferien-urlaub/feiertage-betriebsferientage-bft.html

@onasipim I double-checked again and it seems like Knabenschiessen were observed on 12 and 13 April 2026 as well - just not on the city calendar as "Holidays that fall on a weekend are not listed in the table".

Image Image

We do in fact have the ability to add city-level observances, as done so for Italy and Germany at the moment - I'm thinking of using key "Stadt Zürich" for this particular case

I'm basing Zurich (Canton) observance on this instead https://www.zh.ch/de/wirtschaft-arbeit/arbeitsbedingungen/arbeitsssicherheit-gesundheitsschutz/arbeits-ruhezeiten/feiertage.html

PPsyrius avatar Apr 21 '26 04:04 PPsyrius