Skip to content

Commit

Permalink
Update Timor-Leste holidays (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
KJhellico committed Apr 23, 2024
1 parent 38e1acf commit 921ee39
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 22 deletions.
24 changes: 23 additions & 1 deletion holidays/countries/timor_leste.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ class TimorLeste(
References:
- https://mj.gov.tl/jornal/lawsTL/RDTL-Law/RDTL-Laws/Law-2005-10.pdf # 2005 Law
- http://timor-leste.gov.tl/?p=14494&lang=en # 2016 Amendment
- http://timor-leste.gov.tl/?p=30266&lang=en # 2022
- http://timor-leste.gov.tl/?p=31750&lang=en # 2023 (en_US)
- http://timor-leste.gov.tl/?p=31750&lang=pt # 2023 (pt_PT)
- http://timor-leste.gov.tl/?p=31750&lang=tp # 2023 (tet)
- http://timor-leste.gov.tl/?p=30266&lang=en # 2022
- http://timor-leste.gov.tl/?p=35833&lang=en # 2024
Limitations:
Expand Down Expand Up @@ -201,6 +202,7 @@ class TimorLesteIslamicHolidays(_CustomIslamicHolidays):
2021: (JUL, 19),
2022: (JUL, 9),
2023: (JUN, 29),
2024: (JUN, 17),
}

EID_AL_FITR_DATES = {
Expand Down Expand Up @@ -396,32 +398,52 @@ class TimorLesteStaticHolidays:
(JAN, 2, special_national_holidays),
# http://timor-leste.gov.tl/?p=23607&lang=en
(FEB, 26, special_national_holidays),
# http://timor-leste.gov.tl/?p=25455&lang=en
(AUG, 20, special_national_holidays),
# http://timor-leste.gov.tl/?p=25502&lang=en
(AUG, 31, special_national_holidays),
# http://timor-leste.gov.tl/?p=26030&lang=en
(NOV, 3, special_national_holidays),
# http://timor-leste.gov.tl/?p=26365&lang=en
(DEC, 24, special_national_holidays),
),
2021: (
# http://timor-leste.gov.tl/?p=26865&lang=en
(FEB, 12, special_national_holidays),
# http://timor-leste.gov.tl/?p=26896&lang=en
(FEB, 17, special_national_holidays),
# http://timor-leste.gov.tl/?p=29682&lang=en
(NOV, 3, special_national_holidays),
),
2022: (
# http://timor-leste.gov.tl/?p=30029&lang=en
(FEB, 1, special_national_holidays),
# http://timor-leste.gov.tl/?p=30194&lang=en
(MAR, 2, special_national_holidays),
# http://timor-leste.gov.tl/?p=30254&lang=en
(MAR, 18, presidential_election),
# http://timor-leste.gov.tl/?p=30429&lang=en
(APR, 14, special_national_holidays),
(APR, 18, presidential_election),
(APR, 19, presidential_election),
(APR, 20, presidential_election),
# http://timor-leste.gov.tl/?p=31404&lang=en
(OCT, 31, special_national_holidays),
# http://timor-leste.gov.tl/?p=31574&lang=en
(DEC, 9, special_national_holidays),
# http://timor-leste.gov.tl/?p=31633&lang=en
(DEC, 26, special_national_holidays),
),
2023: (
# http://timor-leste.gov.tl/?p=31641&lang=en
(JAN, 2, special_national_holidays),
# http://timor-leste.gov.tl/?p=31798&lang=en
(JAN, 23, special_national_holidays),
# http://timor-leste.gov.tl/?p=32191&lang=en
(FEB, 22, special_national_holidays),
),
2024: (
# http://timor-leste.gov.tl/?p=36002&lang=en
(FEB, 14, special_national_holidays),
),
}
16 changes: 10 additions & 6 deletions snapshots/countries/TL_COMMON.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
"2020-06-01": "World Children's Day",
"2020-06-11": "Corpus Christi",
"2020-07-31": "Idul Adha",
"2020-08-20": "Day of the Armed Forces for the National Liberation of Timor-Leste (FALINTIL)",
"2020-08-20": "Day of the Armed Forces for the National Liberation of Timor-Leste (FALINTIL); National Holidays (Special)",
"2020-08-30": "Popular Consultation Day",
"2020-08-31": "National Holidays (Special)",
"2020-11-01": "All Saints' Day",
Expand All @@ -387,11 +387,12 @@
"2020-12-07": "Memorial Day",
"2020-12-08": "Day of Our Lady of Immaculate Conception and Timor-Leste Patroness",
"2020-12-10": "World Human Rights Day",
"2020-12-24": "National Holidays (Special)",
"2020-12-25": "Christmas Day",
"2020-12-31": "National Heroes Day",
"2021-01-01": "New Year's Day",
"2021-02-12": "National Holidays (Special)",
"2021-02-17": "Ash Wednesday",
"2021-02-17": "Ash Wednesday; National Holidays (Special)",
"2021-03-03": "Veteran's Day",
"2021-04-01": "Holy Thursday",
"2021-04-02": "Holy Friday",
Expand All @@ -415,7 +416,7 @@
"2021-12-31": "National Heroes Day",
"2022-01-01": "New Year's Day",
"2022-02-01": "National Holidays (Special)",
"2022-03-02": "Ash Wednesday",
"2022-03-02": "Ash Wednesday; National Holidays (Special)",
"2022-03-03": "Veteran's Day",
"2022-03-18": "Presidential Election Day",
"2022-04-14": "Holy Thursday; National Holidays (Special)",
Expand All @@ -432,20 +433,23 @@
"2022-07-09": "Idul Adha",
"2022-08-20": "Day of the Armed Forces for the National Liberation of Timor-Leste (FALINTIL)",
"2022-08-30": "Popular Consultation Day",
"2022-10-31": "National Holidays (Special)",
"2022-11-01": "All Saints' Day",
"2022-11-02": "All Souls' Day",
"2022-11-03": "National Women's Day",
"2022-11-12": "National Youth Day",
"2022-11-28": "Proclamation of Independence Day",
"2022-12-07": "Memorial Day",
"2022-12-08": "Day of Our Lady of Immaculate Conception and Timor-Leste Patroness",
"2022-12-09": "National Holidays (Special)",
"2022-12-10": "World Human Rights Day",
"2022-12-25": "Christmas Day",
"2022-12-26": "National Holidays (Special)",
"2022-12-31": "National Heroes Day",
"2023-01-01": "New Year's Day",
"2023-01-02": "National Holidays (Special)",
"2023-01-23": "National Holidays (Special)",
"2023-02-22": "Ash Wednesday",
"2023-02-22": "Ash Wednesday; National Holidays (Special)",
"2023-03-03": "Veteran's Day",
"2023-04-06": "Holy Thursday",
"2023-04-07": "Holy Friday",
Expand All @@ -469,7 +473,7 @@
"2023-12-25": "Christmas Day",
"2023-12-31": "National Heroes Day",
"2024-01-01": "New Year's Day",
"2024-02-14": "Ash Wednesday",
"2024-02-14": "Ash Wednesday; National Holidays (Special)",
"2024-03-03": "Veteran's Day",
"2024-03-28": "Holy Thursday",
"2024-03-29": "Holy Friday",
Expand All @@ -479,7 +483,7 @@
"2024-05-20": "Restoration of Independence Day",
"2024-05-30": "Corpus Christi",
"2024-06-01": "World Children's Day",
"2024-06-16": "Idul Adha (estimated)",
"2024-06-17": "Idul Adha",
"2024-08-20": "Day of the Armed Forces for the National Liberation of Timor-Leste (FALINTIL)",
"2024-08-30": "Popular Consultation Day",
"2024-11-01": "All Saints' Day",
Expand Down
30 changes: 15 additions & 15 deletions tests/countries/test_timor_leste.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,27 @@ def test_special_government_holidays(self):
"2019-12-30",
"2020-01-02",
"2020-02-26",
"2020-08-20",
"2020-08-31",
"2020-11-03",
"2020-12-24",
"2021-02-12",
"2021-02-17",
"2021-11-03",
"2022-02-01",
"2022-03-02",
"2022-03-18",
"2022-04-14",
"2022-04-18",
"2022-04-19",
"2022-04-20",
"2022-10-31",
"2022-12-09",
"2022-12-26",
"2023-01-02",
"2023-01-23",
"2023-02-22",
"2024-02-14",
)

def test_2011_public(self):
Expand Down Expand Up @@ -443,7 +452,7 @@ def test_l10n_default(self):
("2023-01-01", "Dia de Ano Novo"),
("2023-01-02", "Feriados Nacionais (Especiais)"),
("2023-01-23", "Feriados Nacionais (Especiais)"),
("2023-02-22", "Quarta-Feira de Cinzas"),
("2023-02-22", "Feriados Nacionais (Especiais); Quarta-Feira de Cinzas"),
("2023-03-03", "Dia dos Veteranos"),
("2023-04-06", "Quinta-Feira Santa"),
("2023-04-07", "Sexta-Feira Santa"),
Expand Down Expand Up @@ -480,7 +489,7 @@ def test_l10n_en_us(self):
("2023-01-01", "New Year's Day"),
("2023-01-02", "National Holidays (Special)"),
("2023-01-23", "National Holidays (Special)"),
("2023-02-22", "Ash Wednesday"),
("2023-02-22", "Ash Wednesday; National Holidays (Special)"),
("2023-03-03", "Veteran's Day"),
("2023-04-06", "Holy Thursday"),
("2023-04-07", "Holy Friday"),
Expand All @@ -502,10 +511,7 @@ def test_l10n_en_us(self):
("2023-11-12", "National Youth Day"),
("2023-11-28", "Proclamation of Independence Day"),
("2023-12-07", "Memorial Day"),
(
"2023-12-08",
"Day of Our Lady of Immaculate Conception and Timor-Leste Patroness",
),
("2023-12-08", "Day of Our Lady of Immaculate Conception and Timor-Leste Patroness"),
("2023-12-10", "World Human Rights Day"),
("2023-12-25", "Christmas Day"),
("2023-12-31", "National Heroes Day"),
Expand All @@ -517,7 +523,7 @@ def test_l10n_tet(self):
("2023-01-01", "Loron Tinan-Foun nian"),
("2023-01-02", "Feriadu Nasional (Espesial)"),
("2023-01-23", "Feriadu Nasional (Espesial)"),
("2023-02-22", "Kuarta-Feira Sinzas"),
("2023-02-22", "Feriadu Nasional (Espesial); Kuarta-Feira Sinzas"),
("2023-03-03", "Loron Veteranu sira nian"),
("2023-04-06", "Quinta-Feira Santa"),
("2023-04-07", "Sesta-Feira Santa"),
Expand All @@ -528,21 +534,15 @@ def test_l10n_tet(self):
("2023-06-01", "Loron Mundial ba Labarik"),
("2023-06-08", "Festa Korpu de Deus"),
("2023-06-29", "Idul Adha"),
(
"2023-08-20",
"Loron Forsa Armada Libertasaun Nasionál Timor-Leste (FALINTIL) nian",
),
("2023-08-20", "Loron Forsa Armada Libertasaun Nasionál Timor-Leste (FALINTIL) nian"),
("2023-08-30", "Loron Konsulta Populár nian"),
("2023-11-01", "Loron Santu sira Hotu nian"),
("2023-11-02", "Loron Matebian sira nian"),
("2023-11-03", "Loron Nasionál Feto"),
("2023-11-12", "Loron Nasionál Foin-Sa'e sira nian"),
("2023-11-28", "Loron Proklamasaun Independénsia nian"),
("2023-12-07", "Loron Memória nian"),
(
"2023-12-08",
"Loron Nossa Senhora da Imaculada Conceição, mahein Timor-Leste nian",
),
("2023-12-08", "Loron Nossa Senhora da Imaculada Conceição, mahein Timor-Leste nian"),
("2023-12-10", "Loron Mundiál Direitu Umanu"),
("2023-12-25", "Loron Natál"),
("2023-12-31", "Loron Eroi Nasionál sira nian"),
Expand Down

0 comments on commit 921ee39

Please sign in to comment.