nager / Nager.Date

Worldwide holidays (REST API), NuGet or docker container :earth_americas:
https://date.nager.at
MIT License
1.12k stars 179 forks source link

Argentina - Fix Weekday shift logic #687

Closed tinohager closed 1 month ago

tinohager commented 1 month ago

I have incorporated the logic that holidays on Tuesday or Wednesday are moved to the previous Monday. Holidays on Thursday, Friday, Saturday, Sunday are moved to the following Monday.

As described on https://en.wikipedia.org/wiki/Public_holidays_in_Argentina.

@JuanIgnacioPayo But the described rules do not match with the “General José de San Martín Memorial Day”?

JuanIgnacioPayo commented 1 month ago

Hello Tino, thank you very much for your work! I am going to share with you a note from an Argentine newspaper so that you understand why the August 17 holiday was not moved. https://www.lanacion.com.ar/feriados/2024/por-que-el-feriado-del-17-de-agosto-es-trasladable-pero-no-se-mueve-nid11082024/?gad_source=1&gclid =CjwKCAjw6c63BhAiEiwAF0EH1FGVkS62mnx7OuOChoX3virpy0-N1KVVjkns6DVGTwwykhVm2xhT8RoCAz0QAvD_BwE . Basically the quota of decreeable bridge holidays has ended and the legislation does not define what is done with transferable holidays when they fall on a Saturday or Sunday. Thank you very much again and have a great day!

El mié, 25 de sept de 2024, 9:50 a. m., Tino Hager @.***> escribió:

I have incorporated the logic that holidays on Tuesday or Wednesday are moved to the previous Monday. Holidays on Thursday, Friday, Saturday, Sunday are moved to the following Monday.

As described on https://en.wikipedia.org/wiki/Public_holidays_in_Argentina .

@JuanIgnacioPayo https://github.com/JuanIgnacioPayo But the described rules do not match with the “General José de San Martín Memorial Day”?

You can view, comment on, or merge this pull request online at:

https://github.com/nager/Nager.Date/pull/687 Commit Summary

File Changes

(1 file https://github.com/nager/Nager.Date/pull/687/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/nager/Nager.Date/pull/687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVFECBA3NHC2PFHYSADF4ILZYKWS7AVCNFSM6AAAAABO2PAC6KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DOOJQG43TKOI . You are receiving this because you were mentioned.Message ID: <nager/Nager .@.***>