0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 16:57:36 +08:00
discourse/plugins/discourse-calendar/vendor/holidays/definitions/ar.yaml
Gary Pendergast 1983a44812
CHORE: Import holiday definition updates. (#34835)
The Discourse Calendar plugin includes a hard fork of the [holidays
gem](https://github.com/holidays/holidays/).

There have been some updates to the original gem since the fork, this
change pulls in the major updates.

---------

Co-authored-by: Ivan Kuchin <tadump+git@gmail.com>
Co-authored-by: Phil Peble <ppeble@activecampaign.com>
Co-authored-by: Claudio Rodrigo Pereyra Diaz <claudiorodrigo@pereyradiaz.com.ar>
Co-authored-by: Michael Smith <michael.smith076@msd.govt.nz>
Co-authored-by: Lairton Mendes <lairton.mendes@gmail.com>
Co-authored-by: Lars Aurbakken <Lars.Aurbakken@ist.com>
Co-authored-by: i2chris <35810281+i2chris@users.noreply.github.com>
Co-authored-by: Dennis van de Hoef <dennisvdhoef@gmail.com>
2025-09-17 16:07:06 +10:00

268 lines
6 KiB
YAML
Vendored

# Argentinian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2021-05-16.
#
# Sources:
# - http://en.wikipedia.org/wiki/Public_holidays_in_Argentina
# - http://servicios.lanacion.com.ar/feriados/2016
# - https://www.argentina.gob.ar/interior/feriados-nacionales-2020
# - https://www.argentina.gob.ar/interior/feriados-nacionales-2021
---
methods:
to_nearest_monday:
arguments: date
ruby: |
case date.wday
when 5
date += 3
when 4
date += 4
when 3
date -= 2
when 2
date -= 1
end
date
months:
0:
- name: Viernes Santo
regions: [ar]
function: easter(year)
function_modifier: -2
- name: Carnaval Lunes
regions: [ar]
function: easter(year)
function_modifier: -48
- name: Carnaval Martes
regions: [ar]
function: easter(year)
function_modifier: -47
1:
- name: Año Nuevo
regions: [ar]
mday: 1
3:
- name: Día Nacional de la Memoria por la Verdad y la Justicia
regions: [ar]
mday: 24
4:
- name: Día del Veterano y de los Caídos en la Guerra de Malvinas
regions: [ar]
mday: 2
5:
- name: Día del Trabajador
regions: [ar]
mday: 1
- name: Día de la Revolución de Mayo
regions: [ar]
mday: 25
- name: Feriado con fines turísticos
regions: [ar]
mday: 24
year_ranges:
limited: [2021]
6:
- name: Paso a la Inmortalidad del General Martín Miguel de Güemes
regions: [ar]
mday: 17
function: to_nearest_monday(date)
- name: Día de la Bandera
regions: [ar]
mday: 20
7:
- name: Feriado con fines turísticos
regions: [ar]
mday: 8
year_ranges:
limited: [2016]
- name: Día de la Independencia
regions: [ar]
mday: 9
8:
- name: Paso a la Inmortalidad del General José de San Martín
regions: [ar]
mday: 17
function: to_nearest_monday(date)
10:
- name: Día del Respeto a la Diversidad Cultural
regions: [ar]
mday: 12
function: to_nearest_monday(date)
- name: Feriado con fines turísticos
regions: [ar]
mday: 8
year_ranges:
limited: [2021]
11:
- name: Día de la Soberanía Nacional
regions: [ar]
mday: 20
- name: Feriado con fines turísticos
regions: [ar]
mday: 22
year_ranges:
limited: [2021]
12:
- name: Inmaculada Concepción de María
regions: [ar]
mday: 8
- name: Feriado con fines turísticos
regions: [ar]
mday: 9
year_ranges:
limited: [2016]
- name: Navidad
regions: [ar]
mday: 25
tests:
- given:
date: '2016-01-01'
regions: ['ar']
options: 'informal'
expect:
name: 'Año Nuevo'
- given:
date: '2016-02-08'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Lunes'
- given:
date: '2016-02-09'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Martes'
- given:
date: '2017-02-27'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Lunes'
- given:
date: '2017-02-28'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Martes'
- given:
date: '2018-02-12'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Lunes'
- given:
date: '2018-02-13'
regions: ['ar']
options: 'informal'
expect:
name: 'Carnaval Martes'
- given:
date: '2016-03-24'
regions: ['ar']
options: 'informal'
expect:
name: 'Día Nacional de la Memoria por la Verdad y la Justicia'
- given:
date: '2016-03-25'
regions: ['ar']
options: 'informal'
expect:
name: 'Viernes Santo'
- given:
date: '2016-04-02'
regions: ['ar']
options: 'informal'
expect:
name: 'Día del Veterano y de los Caídos en la Guerra de Malvinas'
- given:
date: '2016-05-01'
regions: ['ar']
options: 'informal'
expect:
name: 'Día del Trabajador'
- given:
date: '2016-05-25'
regions: ['ar']
options: 'informal'
expect:
name: 'Día de la Revolución de Mayo'
- given:
date: ['2020-06-15', '2021-06-21']
regions: ['ar']
options: 'informal'
expect:
name: 'Paso a la Inmortalidad del General Martín Miguel de Güemes'
holiday: true
- given:
date: ['2020-06-17', '2021-06-17']
regions: ['ar']
options: 'informal'
expect:
holiday: false
- given:
date: '2016-06-20'
regions: ['ar']
options: 'informal'
expect:
name: 'Paso a la Inmortalidad del General Martín Miguel de Güemes'
- given:
date: '2016-07-09'
regions: ['ar']
options: 'informal'
expect:
name: 'Día de la Independencia'
- given:
date: ['2016-08-15', '2020-08-17', '2021-08-16']
regions: ['ar']
options: 'informal'
expect:
name: 'Paso a la Inmortalidad del General José de San Martín'
holiday: true
- given:
date: ['2016-08-17', '2021-08-17']
regions: ['ar']
options: 'informal'
expect:
holiday: false
- given:
date: ['2016-10-10', '2021-10-11']
regions: ['ar']
options: 'informal'
expect:
name: 'Día del Respeto a la Diversidad Cultural'
holiday: true
- given:
date: '2021-10-12'
regions: ['ar']
options: 'informal'
expect:
holiday: false
- given:
date: '2016-11-20'
regions: ['ar']
options: 'informal'
expect:
name: 'Día de la Soberanía Nacional'
- given:
date: '2016-12-08'
regions: ['ar']
options: 'informal'
expect:
name: 'Inmaculada Concepción de María'
- given:
date: ['2016-07-08', '2016-12-09', '2021-05-24', '2021-10-8', '2021-11-22']
regions: ['ar']
options: 'informal'
expect:
name: 'Feriado con fines turísticos'
holyday: true
- given:
date: '2016-12-25'
regions: ['ar']
options: 'informal'
expect:
name: 'Navidad'