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

Russian holidays for 2021 are missing some reschedulings

Open master0v opened this issue 4 years ago • 4 comments

Specifically:

For the rational use of weekends and non-working holidays, the Government of the Russian Federation decides: Reschedule the following weekend in 2021: from Saturday 2 January to Friday 5 November; from Sunday 3 January to Friday 31 December; from Saturday 20 February to Monday 22 February.

Source: http://www.consultant.ru/law/ref/calendar/proizvodstvennye/2021/

master0v avatar Feb 15 '21 14:02 master0v

@master0v is there some logic to this (can it be computed), or do they randomly decide to change them?

bkthomps avatar Jun 26 '22 07:06 bkthomps

I don't think this can be computed. The logic, I believe, is to create continuous holidays without holes in them, so for example Feb 23 is a holiday, so they move the Saturday to Monday, so that people can have 3 continuous days off. For the other ones, I am not so sure. Lately the logic of Russian leaders escapes me ;)

master0v avatar Jul 02 '22 16:07 master0v

This given, we can't implement this change with static logic rules as we normally do. Anyone interested in adding year-specific rules is appreciated, thx.

dr-prodigy avatar Jul 23 '22 14:07 dr-prodigy

The https://github.com/vacanza/python-holidays/pull/1365/ has introduced substituted holidays support recently. Please consider filing a PR to fix the issue.

arkid15r avatar Aug 02 '23 19:08 arkid15r