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

Movable holidays in ARG

Open celispahn opened this issue 4 years ago • 1 comments

There are 4 holidays in Argentina that are movable or transferable, meaning they aren't always on the exact same date. They're now set as fixed dates and that's not accurate.

This ones are: Día Pase a la Inmortalidad del General Martín Miguel de Güemes [Day Pass to the Immortality of General Martín Miguel de Güemes] --- it's set to XXXX-06-17 Día Pase a la Inmortalidad del General D. José de San Martin [Day Pass to the Immortality of General D. José de San Martin] --- it's set to XXXX-08-17 Día del Respeto a la Diversidad Cultural [Respect for Cultural Diversity Day] --- it's set to XXXX-10-12 Día Nacional de la Soberanía [National Sovereignty Day] --- it's set to XXXX-11-23

The dates of this holidays in the last few years are: ►Día Pase a la Inmortalidad del General Martín Miguel de Güemes [Day Pass to the Immortality of General Martín Miguel de Güemes] (this holiday didn't exist before 2018) 2018-06-17 2019-06-17 2020-06-15 2021-06-21

►Día Pase a la Inmortalidad del General D. José de San Martin [Day Pass to the Immortality of General D. José de San Martin] 2015-08-17 2016-05-15 2017-08-21 2018-08-20 2019-08-17 2020-08-17 2021-08-16

►Día del Respeto a la Diversidad Cultural [Respect for Cultural Diversity Day] 2015-10-12 2016-10-10 2017-10-16 2018-10-15 2019-10-12 2020-10-12 2021-10-11 2022-10-12

►Día Nacional de la Soberanía [National Sovereignty Day] 2015-11-23 2016-11-28 2017-11-20 2018-11-19 2019-11-18 2020-11-23 2021-11-20 2022-11-23

celispahn avatar May 02 '21 20:05 celispahn

Is there any rhyme or reason for those dates (can they be computed), or are they based on the whims of lawmakers?

madphysicist avatar Dec 05 '21 20:12 madphysicist

in AR there are bridge holidays, some move and sone don't depending on the government, there is no way to compute them as they change every year. the information source can be found on (in spanish): https://www.argentina.gob.ar/interior/feriados-nacionales-2022 additionally, google's public holidays' calendar has them right

leandrorojas avatar Oct 20 '22 18:10 leandrorojas

in AR there are bridge holidays, some move and sone don't depending on the government, there is no way to compute them as they change every year. the information source can be found on (in spanish): https://www.argentina.gob.ar/interior/feriados-nacionales-2022 additionally, google's public holidays' calendar has them right these dates are usually informed at the beginning of the year. In some exceptions, they are changed through the year through laws

leandrorojas avatar Oct 20 '22 18:10 leandrorojas

Here's the info on moveable holidays in Argentina (listed as "citation needed" on Wikipedia, but should be usable for now):

The "movable holidays" whose dates coincide with Tuesdays and Wednesdays will be moved to the previous Monday. Those that coincide with Thursday, Friday, Saturday and Sunday will be moved to the following Monday. Every employee is entitled to 15 paid public holidays and every year the government adds a few more holidays known as "bridge holidays" which means that a holiday last two days.

As per Thailand's case, "Bridge Holidays" can be declared in the special_holidays = { ... } section separately.

@celispahn @leandrorojas Is there an Argentinian calendar online anywhere with data from previous years that we can cross-check with on the bridge holidays pre-2020? Otherwise we can probably begin with data for 2020, 2021, 2022, 2023

PPsyrius avatar Feb 25 '23 06:02 PPsyrius

The rule wikipedia described is ok and it is also the Law 🤣 (Ley 27399, also mentioned at the bottom of https://www.argentina.gob.ar/interior/feriados-nacionales-2023) I did find previous' years data, some in text form other as screen captures, let me know if you need translation or assistance:

2019: both from official sites --> https://www.argentina.gob.ar/noticias/feriados-2019-conoce-el-calendario-completo --> https://www.cultura.gob.ar/feriados-2019-en-argentina_7326/ 2019: from a local news paper --> https://servicios.lanacion.com.ar/app-mobile/feriados/2019

2018: from a local news paper --> https://servicios.lanacion.com.ar/app-mobile/feriados/2018

2017: from local news paper, you get the idea --> https://servicios.lanacion.com.ar/app-mobile/feriados/2017

hope this helps PS: the link on 2021 you posted points to 2020

leandrorojas avatar Feb 26 '23 23:02 leandrorojas

Thanks for the help, I'll try to get them implemented soon enough :)

PPsyrius avatar Feb 27 '23 03:02 PPsyrius

I tried to change AR holidays according to Law 27399 in #968. @leandrorojas, please look, if you can. Currently it's in beta branch.

KJhellico avatar Feb 27 '23 19:02 KJhellico

As a side note, it seems like the current Ley 27399 only moved to the next Monday for the ones that fall on Thur/Fri, not Sat/Sun as per the current logic stated on Wikipedia above. This results in myriads of errors when checking with the official calendar data, so I will open up the pull request soon once I've finished the current code revamps. @leandrorojas @KJhellico

PPsyrius avatar Feb 28 '23 02:02 PPsyrius

@dr-prodigy This is now fixed with #988, should be safe to close down now.

PPsyrius avatar Mar 03 '23 10:03 PPsyrius

Resolved in #988.

arkid15r avatar Mar 03 '23 17:03 arkid15r