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

ADD Holidays from Bolivia?

Open djcrawleravp opened this issue 2 years ago • 4 comments

If is not much to ask?

https://publicholidays.com.bo/

Thanks!

djcrawleravp avatar Jun 30 '22 23:06 djcrawleravp

Hi @djcrawleravp is there any special rule about the holidays in Bolivia? like, if it lays on a sunday, do you guys get monday off as well ?

TIA (WIP)

jusce17 avatar Jul 06 '22 21:07 jusce17

All religious holidays are on the exact date, non religious ones are moved to monday if they are on a sunday :3

djcrawleravp avatar Jul 06 '22 22:07 djcrawleravp

Hi, this is a completely voluntary-backed project, so we won't accept any request for specific features.

On the other hand, all contributions are always more than welcome so, if you're interested in python-holidays and / or available to give your support, my suggestion is to implement them yourself, or wait for someone to commit to this task.

Pls start from here for details: https://github.com/dr-prodigy/python-holidays#contributions

Marking this as "help wanted".. Thx!

dr-prodigy avatar Jul 25 '22 09:07 dr-prodigy

I'll love to, but I'm not a developer :/, thanks anyway

djcrawleravp avatar Aug 08 '22 13:08 djcrawleravp

I'd like to work on this one.

@djcrawleravp one more question. Are regional holidays days off too in those specific regions? For instance, is Chuquisaca Day (May 25) is a day off in the Bolivian department of Chuquisaca?

kasya avatar Sep 07 '22 22:09 kasya

I'd like to work on this one.

@djcrawleravp one more question. Are regional holidays days off too in those specific regions? For instance, is Chuquisaca Day (May 25) is a day off in the Bolivian department of Chuquisaca?

Thank you Kasya, Yes, regional holidays days off are on the specific regions

djcrawleravp avatar Sep 08 '22 15:09 djcrawleravp

Hi @djcrawleravp,

Could you please verify test outputs for Bolivian holidays? Here is a printout for 2021, with observed holidays:

2021-01-01 Año Nuevo
2021-01-22 Nacimiento del Estado Plurinacional de Bolivia
2021-02-15 Feriado por Carnaval
2021-02-16 Feriado por Carnaval (Observed)
2021-04-02 Viernes Santo
2021-05-01 Dia del trabajo
2021-06-03 Corpus Christi
2021-06-21 Año Nuevo Andino
2021-08-02 Día de la Revolución Agraria
2021-08-06 Dia de la Patria
2021-11-02 Todos Santos
2021-12-25 Navidad

Here's one for 2022, with observed holidays:

2022-01-01 Año Nuevo
2022-01-22 Nacimiento del Estado Plurinacional de Bolivia
2022-02-28 Feriado por Carnaval
2022-03-01 Feriado por Carnaval (Observed)
2022-04-15 Viernes Santo
2022-05-01 Dia del trabajo
2022-05-02 Dia del trabajo (Observed)
2022-06-16 Corpus Christi
2022-06-21 Año Nuevo Andino
2022-08-02 Día de la Revolución Agraria
2022-08-06 Dia de la Patria
2022-11-02 Todos Santos
2022-12-25 Navidad
2022-12-26 Navidad (Observed)

Here'e one for 2023, with observed holidays:

2023-01-01 Año Nuevo
2023-01-02 Año Nuevo (Observed)
2023-01-22 Nacimiento del Estado Plurinacional de Bolivia
2023-02-20 Feriado por Carnaval
2023-02-21 Feriado por Carnaval (Observed)
2023-04-07 Viernes Santo
2023-05-01 Dia del trabajo
2023-06-08 Corpus Christi
2023-06-21 Año Nuevo Andino
2023-08-02 Día de la Revolución Agraria
2023-08-06 Dia de la Patria
2023-08-07 Dia de la Patria (Observed)
2023-11-02 Todos Santos
2023-12-25 Navidad

And here's one for 2022, Santa Cruz department with observed holidays:

2022-01-01 Año Nuevo
2022-01-22 Nacimiento del Estado Plurinacional de Bolivia
2022-02-28 Feriado por Carnaval
2022-03-01 Feriado por Carnaval (Observed)
2022-04-15 Viernes Santo
2022-05-01 Dia del trabajo
2022-05-02 Dia del trabajo (Observed)
2022-06-16 Corpus Christi
2022-06-21 Año Nuevo Andino
2022-08-02 Día de la Revolución Agraria
2022-08-06 Dia de la Patria
2022-09-24 Día del departamento de Santa Cruz
2022-11-02 Todos Santos
2022-12-25 Navidad
2022-12-26 Navidad (Observed)

Thanks!

kasya avatar Sep 11 '22 00:09 kasya

Hey @kasya! Thank you so much for this!.

Indeed those Holidays are correct, I don't quite understand what (Observed) mean but certainly those days are incorrect

djcrawleravp avatar Sep 12 '22 14:09 djcrawleravp

Hey @djcrawleravp ,

I don't quite understand what (Observed) mean but certainly those days are incorrect

Observed holiday in this case is when a holiday falls on Sunday and you get next Monday as a day off (for non-religious holidays). As I understood after your reply on Jul 6 - that's the way in Bolivia. I also googled a bit and it seems that Bolivia does have observed holidays that fall on Sunday. Is that not correct?

kasya avatar Sep 12 '22 15:09 kasya

Hi @kasya,

I did my research in here and find out that Sunday holidays are moved to the next day.

In case of "Feriado de Carnaval" is a little bit complex. These are 2 Days (Monday and Tuesday) before "Viernes Santo)

In other words, Your output is correct, I was mistaken :P

djcrawleravp avatar Sep 12 '22 15:09 djcrawleravp

@djcrawleravp great, thanks for checking! It is my understanding that these changes should be added to beta with next update.

kasya avatar Sep 12 '22 18:09 kasya

Thank you very much @kasya !!!

djcrawleravp avatar Sep 12 '22 20:09 djcrawleravp

@kasya + everyone, that's what I've just done: #698 merged today in beta :+1: Release in master + new PyPi release will follow, as per our standard release workflow. Thanks a lot everyone, cheers! dr-p

dr-prodigy avatar Sep 13 '22 15:09 dr-prodigy