# SPDX-License-Identifier: MIT
# Holiday file for Uruguay
# Derived from the Python holidays project at
# https://github.com/vacanza/holidays
#
# See important caveats in the README file in this directory.

OMIT 1 January MSG %"Año Nuevo%" %! %b.
OMIT 1 May MSG %"Día de los Trabajadores%" %! %b.
OMIT 18 July MSG %"Jura de la Constitución%" %! %b.
OMIT 25 August MSG %"Declaratoria de la Independencia%" %! %b.
OMIT 25 December MSG %"Día de la Familia%" %! %b.

# Optional holidays
REM 6 January MSG %"Día de los Niños%" %! %b.
REM [easterdate($Uy)-48] MSG %"Carnaval%" %! %b.
REM [easterdate($Uy)-47] MSG %"Carnaval%" %! %b.
REM [easterdate($Uy)-6] MSG %"Semana de Turismo%" %! %b.
REM [easterdate($Uy)-5] MSG %"Semana de Turismo%" %! %b.
REM [easterdate($Uy)-4] MSG %"Semana de Turismo%" %! %b.
REM [easterdate($Uy)-3] MSG %"Semana de Turismo%" %! %b.
REM [easterdate($Uy)-2] MSG %"Semana de Turismo%" %! %b.
REM 17 April SCANFROM -28 SATISFY [wkdaynum($T+2) == 3] MSG %"Desembarco de los 33 Orientales%" %! %b.
REM 18 April SCANFROM -28 SATISFY [wkdaynum($T+1) == 2] MSG %"Desembarco de los 33 Orientales%" %! %b.
REM 19 April SCANFROM -28 SATISFY [$Tw != 2 && $Tw != 3 && $Tw != 4 && $Tw != 5] MSG %"Desembarco de los 33 Orientales%" %! %b.
REM 22 April SCANFROM -28 SATISFY [wkdaynum($T-3) == 5] MSG %"Desembarco de los 33 Orientales%" %! %b.
REM 23 April SCANFROM -28 SATISFY [wkdaynum($T-4) == 4] MSG %"Desembarco de los 33 Orientales%" %! %b.
REM 16 May SCANFROM -28 SATISFY [wkdaynum($T+2) == 3] MSG %"Batalla de Las Piedras%" %! %b.
REM 17 May SCANFROM -28 SATISFY [wkdaynum($T+1) == 2] MSG %"Batalla de Las Piedras%" %! %b.
REM 18 May SCANFROM -28 SATISFY [$Tw != 2 && $Tw != 3 && $Tw != 4 && $Tw != 5] MSG %"Batalla de Las Piedras%" %! %b.
REM 21 May SCANFROM -28 SATISFY [wkdaynum($T-3) == 5] MSG %"Batalla de Las Piedras%" %! %b.
REM 22 May SCANFROM -28 SATISFY [wkdaynum($T-4) == 4] MSG %"Batalla de Las Piedras%" %! %b.
REM 19 June MSG %"Natalicio de Artigas%" %! %b.
REM 10 October SCANFROM -28 SATISFY [wkdaynum($T+2) == 3] MSG %"Día de la Diversidad Cultural%" %! %b.
REM 11 October SCANFROM -28 SATISFY [wkdaynum($T+1) == 2] MSG %"Día de la Diversidad Cultural%" %! %b.
REM 12 October SCANFROM -28 SATISFY [$Tw != 2 && $Tw != 3 && $Tw != 4 && $Tw != 5] MSG %"Día de la Diversidad Cultural%" %! %b.
REM 15 October SCANFROM -28 SATISFY [wkdaynum($T-3) == 5] MSG %"Día de la Diversidad Cultural%" %! %b.
REM 16 October SCANFROM -28 SATISFY [wkdaynum($T-4) == 4] MSG %"Día de la Diversidad Cultural%" %! %b.
REM 2 November MSG %"Día de los Difuntos%" %! %b.
