Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
b381666
remove easter sunday
ghiculescu Aug 23, 2018
78a1d2c
update tests
ghiculescu Aug 23, 2018
d5bc705
Merge branch 'master' of github.com:holidays/definitions
ghiculescu Aug 23, 2018
bf602e4
fix incorrect tests
ghiculescu Aug 23, 2018
9df8862
Add AFL holiday
arielleleano Sep 19, 2018
b9e062f
Merge pull request #3 from TandaHQ/feature/add-afl-holiday
arielleleano Sep 19, 2018
cb8c69e
created thai holidays
prfraser Oct 17, 2018
2e53780
Merge branch 'master' of github.com:TandaHQ/definitions
prfraser Oct 17, 2018
94a0569
thai definitions
prfraser Oct 17, 2018
c8c4cad
Add Liberia public holidays
marvinjason Oct 31, 2018
eb29dc6
Add Norfolk Island public holidays
marvinjason Nov 21, 2018
de11cd5
add Myanmar holidays
prfraser Feb 13, 2019
ecc8170
Add Christmas Day to AU holidays
kojdm Mar 4, 2019
e4ad0bc
Revert "add Myanmar holidays"
kojdm Mar 4, 2019
58a9c4b
Revert "Revert "add Myanmar holidays""
kojdm Mar 4, 2019
2f61d2c
Revert "Add Christmas Day to AU holidays"
kojdm Mar 4, 2019
87182f1
added Christmas Day to AU holidays
kojdm Mar 4, 2019
0477276
Removed duplicate Easter Monday implementation.
Mar 19, 2019
b64db74
Move the observation of the Bounty Day holiday to following Monday if…
Mar 19, 2019
df92342
Removed poorly written test.
Mar 19, 2019
7a201fd
Casimir Pulaski Day is only a holiday in Chicago
ghiculescu Mar 19, 2019
701d27c
Emancipation Day not recognised in CA
ghiculescu Mar 19, 2019
4e0b14f
Election Day isn't a holiday in IL
ghiculescu Mar 19, 2019
fafcddb
Merge pull request #4 from TandaHQ/hotfix/us_holiday_issues
ghiculescu Mar 19, 2019
72c12f8
Fix ACT Reconciliation Day
marvinjason May 16, 2019
6b565b5
Update bank holiday names GB
prfraser May 28, 2019
384068b
Add AFL Grand Final Friday 2019
kojdm Sep 23, 2019
f918ba2
Add test for AFL Friday 2019
kojdm Sep 23, 2019
a79b757
Update Melbourne Cup Day Holiday
levelone Dec 13, 2019
be0d270
Update Melbourne Cup Holiday
levelone Dec 17, 2019
0554e5f
Update may day uk
prfraser Jan 14, 2020
c478a4f
Update mm.yaml
Jan 16, 2020
a27dfa4
Merge pull request #6 from alexanderholder/master
Jan 16, 2020
056f78a
Merge branch 'master' of github.com:TandaHQ/definitions
marvinjason Jan 23, 2020
c251312
Fix Australia Day and Boxing Day for Norfolk
marvinjason Jan 23, 2020
fbb6e8f
FIX: ACT observes ANZAC Day on Monday if it falls on the weekend at a…
adamlyons2 Apr 15, 2020
81ce87b
add grandfinal 2020 public holiday
Oct 13, 2020
ffc4b09
syntax
Oct 13, 2020
f09772f
Merge pull request #7 from TandaHQ/hotfix/add-afl-grandf-2020
Jyeb Oct 13, 2020
f9642fd
manual addition of missing Boxing Day holidays for applicable states …
calebleungg Dec 1, 2020
ebc4f86
add tests for additional boxing-day ph
calebleungg Dec 1, 2020
0c94824
Merge pull request #8 from TandaHQ/hotfix/additional-boxing-day-holiday
calebleungg Dec 2, 2020
4557781
adding additional ph definitions for anzac/xmax/boxing day in prep fo…
calebleungg Dec 2, 2020
ada3b41
missing function syntax in definitions
calebleungg Dec 2, 2020
42ffeae
revert previous change
calebleungg Dec 2, 2020
1354739
fix wrong argument parsed to observed method boxing day
calebleungg Dec 2, 2020
493d43f
Merge pull request #9 from TandaHQ/hotfix/additional-ph-2021
Dec 2, 2020
94aa8d2
sorry forgot main :au country key on anzac day actual
calebleungg Dec 2, 2020
af0cbfc
Merge pull request #10 from TandaHQ/hotfix/additional-ph-2021
Dec 2, 2020
47d55ad
remove :au from boxing/xmas/anzac default
calebleungg Dec 3, 2020
bf04d1c
moving SA to non-addition boxing day for 2020
calebleungg Dec 3, 2020
dcc1145
remove SA observed as it changes to additional xmas in 2021
calebleungg Dec 7, 2020
b7b7b0e
remove return inside lambda def
calebleungg Dec 7, 2020
45fa5a3
Merge pull request #11 from TandaHQ/hotfix/additional-ph-2021
Dec 7, 2020
e5d5ca2
adding xmas/boxing additionals to nt also
calebleungg Dec 9, 2020
7b232ba
Merge pull request #12 from TandaHQ/hotfix/nt-additiona-ph-2020-21
Dec 9, 2020
4c1e6b5
Update May Day UK
prfraser Jan 4, 2021
df30db7
Merge branch 'master' of github.com:TandaHQ/definitions
prfraser Jan 4, 2021
7dcfaf7
Update May Day in UK
prfraser Jan 4, 2021
12d7807
Merge pull request #14 from TandaHQ/hotfix/update-uk-may-day-definint…
prfraser Jan 4, 2021
438d6e6
Create NZ_calendar_day.yaml
Jan 19, 2021
cc7698a
Rename NZ_calendar_day.yaml to NZ_calendar_dates.yaml
Jan 19, 2021
e0f7c21
Rename NZ_calendar_dates.yaml to nz_calendar_dates.yaml
Jan 20, 2021
6e2f47b
Update index.yaml
Jan 20, 2021
43bd9f6
Update index.yaml
Jan 20, 2021
b6866fb
Merge pull request #15 from TandaHQ/add-nz-calendar-day-holidays
Jan 20, 2021
7b08a0b
Update index.yaml
Jan 20, 2021
23bea04
rename to nz2
Jan 21, 2021
05a432a
update index for nz2
Jan 21, 2021
02b21c6
update all regions to be nz2
Jan 21, 2021
f641baf
Correct nz holiday names
Jan 21, 2021
1d6aa51
add act public holiday
Apr 16, 2021
538ee41
Merge pull request #16 from TandaHQ/add-act-pub-hol
Jyeb Apr 18, 2021
5f3bac3
fix
Apr 19, 2021
f1629b3
Merge pull request #17 from TandaHQ/add-act-pub-hol
Jyeb Apr 19, 2021
e4be68f
Create mu.yaml
beaugrzanich Jun 2, 2021
aa3b04b
Merge pull request #18 from beaugrzanich/patch-1
mattkuras Jun 10, 2021
faf4d5f
Add Mauritius
beaugrzanich Jun 11, 2021
4986fc4
Merge pull request #19 from beaugrzanich/patch-3
mattkuras Jun 14, 2021
2672e89
initial commit
tyler-mcwilliam Jun 21, 2021
ca6ef8f
update additional anzac day in au.yaml to pass tests
tyler-mcwilliam Jun 21, 2021
b9bdc75
Restore au.yaml
tyler-mcwilliam Jun 21, 2021
75b1510
Merge pull request #20 from TandaHQ/hotfix/mu-yaml-syntax
tyler-mcwilliam Jun 21, 2021
4954af7
Add picnic day
frankisawesome Jul 28, 2021
a1259d8
add test
frankisawesome Jul 28, 2021
6761eb1
fix broken syntax
frankisawesome Jul 28, 2021
79d2acc
Merge pull request #21 from TandaHQ/add-picnic-day-for-nt
frankisawesome Jul 28, 2021
ce51972
AFL GF 2021
volsci Sep 14, 2021
2b594b4
Changing Christmas replacement date to Friday
beaugrzanich Oct 15, 2021
27d1ac4
removed Melbourne Cup holiday from au_vic region and fixed a few tests
chrisops Oct 28, 2021
55b3baf
Merge pull request #22 from TandaHQ/PFC-3554/remove-melbourne-cup-hol…
chrisops Oct 28, 2021
1edf0c7
fixed USA holiday tests
chrisops Nov 1, 2021
536c4cf
Merge pull request #23 from TandaHQ/PFC-3554/remove-melbourne-cup-hol…
chrisops Nov 1, 2021
da015f7
Updating Public Holidays for UK 2022
DanjChick68 Nov 2, 2021
24b819a
Revert "fixed USA holiday tests"
chrisops Nov 3, 2021
8484f29
Merge pull request #24 from TandaHQ/revert-23-PFC-3554/remove-melbour…
chrisops Nov 3, 2021
71cb5d1
Revert "removed Melbourne Cup holiday from au_vic region and fixed a …
chrisops Nov 3, 2021
e847c4e
Merge pull request #25 from TandaHQ/revert-22-PFC-3554/remove-melbour…
chrisops Nov 3, 2021
4840057
Merge branch 'master' of https://github.com/TandaHQ/definitions
DanjChick68 Nov 3, 2021
e00bfe7
Update Definitions file
DanjChick68 Nov 3, 2021
f0eeb33
Update gb.yaml
prfraser Nov 4, 2021
971d907
fix boxing day for uk
prfraser Nov 4, 2021
7bb0b05
Boxing day not pushed in uk 2022
prfraser Nov 4, 2021
05b5b40
oopsie
prfraser Nov 4, 2021
1a46578
Merge pull request #27 from TandaHQ/hotfix/uk-christmas-date-ranges
prfraser Nov 4, 2021
cc97f01
Revert US change
prfraser Nov 4, 2021
3ed7dbd
Merge branch 'master' of https://github.com/TandaHQ/definitions
DanjChick68 Nov 5, 2021
4ad3b8b
Update gb.yaml
DanjChick68 Nov 5, 2021
21b93b8
Merge pull request #28 from DanjChick68/Capitalise-Bank-Holidays
DanjChick68 Nov 5, 2021
c2cffd6
added new rules for SA christmas day, NT boxing day, and additional N…
chrisops Nov 9, 2021
9b4e59f
added tests
chrisops Nov 9, 2021
3b4bbe0
Merge pull request #29 from TandaHQ/PFC-3593/au-nyd-and-christmas-cha…
chrisops Nov 9, 2021
bb3fbad
fixed NT boxing day
chrisops Nov 9, 2021
53afa58
Merge pull request #30 from TandaHQ/PFC-3593/au-nyd-and-christmas-cha…
chrisops Nov 9, 2021
bacbb27
fixed SA and NT public holidays
chrisops Nov 9, 2021
8de1d67
fixed SA and NT holidays
chrisops Nov 9, 2021
bf97496
fixed SA boxing day
chrisops Nov 9, 2021
703c03f
fixed SA christmas
chrisops Nov 9, 2021
79c986b
fixed NT/SA boxing day
chrisops Nov 9, 2021
22fbfa9
fixed boxing day again NT
chrisops Nov 9, 2021
c00e63e
fixed SA christmas day
chrisops Nov 9, 2021
699a4f1
fixed SA additional boxing day
chrisops Nov 10, 2021
ac616c3
added method
chrisops Nov 10, 2021
e16c208
Merge branch 'master' into PFC-3593/au-nyd-and-christmas-changes
chrisops Nov 10, 2021
80d6841
Merge pull request #31 from TandaHQ/PFC-3593/au-nyd-and-christmas-cha…
chrisops Nov 10, 2021
e3eaa20
added NYD back to AU region
chrisops Nov 12, 2021
1132a54
removed NYD from AU again
chrisops Nov 17, 2021
bdf8a8c
Merge pull request #32 from TandaHQ/PFC-3593/au-nyd-and-christmas-cha…
chrisops Nov 17, 2021
0c8afbc
nt now has additional public holiday for boxing day
JJcheesy Dec 14, 2021
44baf9b
Merge pull request #33 from TandaHQ/hotfix/ISD-1152-au-nt-boxingday
JJcheesy Dec 14, 2021
7291bab
Fix US holiday dates
ghiculescu Dec 20, 2021
d55e567
Add Matariki manual logic
benaitcheson Dec 22, 2021
90bde27
Amend Matariki PH function
benaitcheson Dec 22, 2021
caa466b
Merge pull request #34 from TandaHQ/hotfix/add-matariki-nz-ph
benaitcheson Dec 22, 2021
4a9a07c
WA gets Easter Sunday for 2022 onwards
benaitcheson Mar 14, 2022
3bc6369
Merge pull request #35 from TandaHQ/hotfix/PFC-4136-Easter-Sunday-WA
benaitcheson Mar 14, 2022
c91bd09
change au yaml for new easter sunday PH
benaitcheson Apr 4, 2022
531d3aa
Merge pull request #36 from TandaHQ/hotfix/PFC-4196-NT-Easter-Sunday-…
benaitcheson Apr 4, 2022
0e94c91
add matariki PH to the second nz yaml
benaitcheson Jun 16, 2022
5c12a8a
Merge pull request #37 from TandaHQ/hotfix/pfc-4385-matariki-take2
benaitcheson Jun 16, 2022
0b27e7d
added juneteenth
oroth8 Jun 17, 2022
f809625
added holidays and tests
oroth8 Jun 17, 2022
94c2183
add observed
oroth8 Jun 17, 2022
6aff6a1
updated us with upstream defs
oroth8 Jun 17, 2022
5c8a323
Merge pull request #38 from TandaHQ/add-juneteenth-holidays-to-us
oroth8 Jun 17, 2022
2e32f0e
added revert, then just added juneteenth
oroth8 Jun 17, 2022
f92cf69
Merge pull request #39 from TandaHQ/copy-only-juneteenth-from-upstream
oroth8 Jun 17, 2022
095f29e
2022 AFL grand final VIC
benaitcheson Aug 25, 2022
a6d79f9
pushed code from something I started accidentially
benaitcheson Aug 25, 2022
78356bd
linting
benaitcheson Aug 25, 2022
bb478bf
lint take 2
benaitcheson Aug 25, 2022
0c3558f
PFC-4532 (fix) 2022 AFL Grand Final VIC
benaitcheson Aug 25, 2022
39f4ee8
Fix MU bank hol
DanjChick68 Aug 30, 2022
7ea4adf
Merge pull request #42 from TandaHQ/hotfix/fix-bh
DanjChick68 Aug 30, 2022
da1a2aa
amend yaml to include PH for all locations
benaitcheson Sep 11, 2022
d5f6a8d
PFC-4672 (fix) Mourning for Queen Elizabeth II (au only)
benaitcheson Sep 12, 2022
733e81b
mourning day to NZ PH
benaitcheson Sep 12, 2022
fdab966
make aus mourning PH better
benaitcheson Sep 12, 2022
ad5e24c
PFC-4676 (fix) Mourning for Queen Elizabeth II (nz only)
benaitcheson Sep 12, 2022
33dc5d3
Add new Bank hol for UK
DanjChick68 Sep 12, 2022
bee71d2
Merge pull request #46 from TandaHQ/hotfix-new-uk-bh
DanjChick68 Sep 12, 2022
37cbef2
Remove whitespace
DanjChick68 Sep 12, 2022
3ddb95e
Remove new BH for UK
DanjChick68 Sep 13, 2022
e534df4
Merge pull request #47 from TandaHQ/hotfix/remove-UK-queen-BH
DanjChick68 Sep 13, 2022
02e7e96
Add file for Uruguay
beaugrzanich Sep 13, 2022
1a39b78
Merge pull request #48 from TandaHQ/hotfix/add-uy
DanjChick68 Sep 16, 2022
d694d3a
ADD: additional days for weekend
benaitcheson Nov 16, 2022
a0bcc4b
FIX: Christmas day not boxing day for the extra
benaitcheson Nov 16, 2022
262510a
FIX: boxing day to tuesday if Sunday
benaitcheson Nov 17, 2022
260bd22
FIX: function not observed
benaitcheson Nov 17, 2022
051816c
FIX: needs to be nil if not applicable
benaitcheson Nov 17, 2022
5c3f098
FIX: remove extra boxing day and make xmas on tuesday if boxing day m…
benaitcheson Nov 17, 2022
177f0a6
FIX: no need for extra xmas here
benaitcheson Nov 17, 2022
a6f026f
PFC-4905 (fix) Additional days for Norfolk Island
benaitcheson Nov 17, 2022
bb07abe
Update diwali date in mu.yaml
DanjChick68 Nov 29, 2022
cabd22e
Merge pull request #50 from TandaHQ/DanjChick68-update-diwali-date
DanjChick68 Nov 29, 2022
aa5f520
FIX: SA getting New Years day and the observed day
benaitcheson Dec 1, 2022
96ae713
FIX: make SA only apply after 2022
benaitcheson Dec 2, 2022
ac159d1
FIX: make 2023 because after is inclusive
benaitcheson Dec 2, 2022
59b885c
PFC-4946 (fix) SA to get New Years day and observed
benaitcheson Dec 2, 2022
adf90d6
Add St Brigids Day as Irish Bank holiday
DanjChick68 Dec 19, 2022
16dd28e
Merge pull request #52 from TandaHQ/hotifx/add-brigids-ie-bh
DanjChick68 Dec 19, 2022
adbc600
Remove 1st of Jan from ES PH
DanjChick68 Dec 21, 2022
ba6ac1c
Merge pull request #53 from TandaHQ/hotfix/remove-es-bh
DanjChick68 Dec 21, 2022
cbc575e
Change year range for es bh
DanjChick68 Dec 21, 2022
06a7664
Merge pull request #54 from TandaHQ/hotfix/remove-es-bh-2023
DanjChick68 Dec 21, 2022
2e8801f
Correct public holiday for malaysais to be first monday of June
seanmichael07 Dec 22, 2022
1f36a4f
Merge pull request #55 from TandaHQ/hotfix/pfc-4972-correct-public-ho…
seanmichael07 Dec 23, 2022
a32cc9b
Add Kings Coronation to UK BH 2023
DanjChick68 Dec 23, 2022
9c0ebd0
Merge pull request #56 from TandaHQ/hotfix/add-kings-coronation-bh-2023
DanjChick68 Dec 23, 2022
a3f7cb6
add uruguay to index file
mattkuras Jan 9, 2023
ca765be
Merge pull request #57 from TandaHQ/hotfix/add-uruguay-holidays
mattkuras Jan 9, 2023
661ea4f
ADD: Easter Sunday for NT plus tests so it applies from 2023 and forward
benaitcheson Mar 10, 2023
e7aa1bd
FIX: wrong year for NT Easter Sunday
benaitcheson Mar 10, 2023
ced51d4
PFC-5173 (fix) Easter Sunday for NT
benaitcheson Mar 12, 2023
5dc8f70
Change Capitalization for NF comment
DanjChick68 Mar 26, 2023
ef7b882
Merge pull request #59 from TandaHQ/hotfix/change-capitalization-test
DanjChick68 Mar 26, 2023
aed262d
Update nf.yaml
DanjChick68 Mar 27, 2023
97316f6
Merge pull request #60 from TandaHQ/hotfix/change-back-capital
DanjChick68 Mar 27, 2023
69dc547
added king's bday
le0n Jun 13, 2023
16fc000
Merge pull request #61 from TandaHQ/add-kings-birthday
le0n Jun 14, 2023
2a081df
Commit my afl ph changes
zakmoCA Aug 14, 2023
1a85773
removed bundle, vendor files, and the gitignore for them
zakmoCA Aug 15, 2023
499e899
removed unnecessary files
zakmoCA Aug 15, 2023
c72dfca
Merge pull request #62 from zakmoCA/hotfix/afl-public-holiday-24-25
zakmoCA Aug 15, 2023
3d81a2c
Add Cyprus Bank Holidays to Definitions
DanjChick68 Nov 13, 2023
a3f8ec9
Merge pull request #63 from TandaHQ/feature/add-cyprus-bank-holidays
DanjChick68 Nov 13, 2023
8811094
update mu public holidays
ScAziz Jan 18, 2024
eedd2c8
remove-force-changes
ScAziz Jan 18, 2024
78709bc
Merge pull request #64 from TandaHQ/remove-mu-ph
ScAziz Jan 18, 2024
6753f8d
Fix MU Public Holidays
DanjChick68 Jan 18, 2024
1cd7221
Merge pull request #66 from TandaHQ/hotfix/fix-mu-phs
DanjChick68 Jan 18, 2024
862e605
Update St Brigids Day IE Bank Holiday Date
DanjChick68 Feb 9, 2024
3aa9569
Merge pull request #68 from TandaHQ/hotfix/update-brigids-day-ie-date
DanjChick68 Feb 9, 2024
e16813b
Hotfix: Updated kings birthday
MossJTanda Feb 12, 2024
9891840
Merge pull request #69 from TandaHQ/L2S-3549-WA-KingBDay
MossJTanda Feb 12, 2024
64bc616
Hotfix: created a 2024 exception
MossJTanda Feb 12, 2024
b399351
Merge pull request #70 from TandaHQ/L2S-3549-WA-KB-2024Update
MossJTanda Feb 12, 2024
8a76cf3
hotfix: Removed a troublesome space
MossJTanda Feb 12, 2024
3fc1707
Merge pull request #71 from TandaHQ/hotfix-James-WAKB2024
MossJTanda Feb 12, 2024
d777cb4
hotfix: I had to know
MossJTanda Feb 12, 2024
d03a143
hotfix: trying something new
MossJTanda Feb 12, 2024
417b47f
Update au.yaml
MossJTanda Feb 12, 2024
23e810f
hotfix: added 2023 KB back
MossJTanda Feb 12, 2024
e0748b9
hotfix: added 2023 KB back
MossJTanda Feb 12, 2024
437157b
hotfix: added a test for 2023
MossJTanda Feb 12, 2024
e0f522a
Merge pull request #72 from TandaHQ/James-KBWA2024
MossJTanda Feb 12, 2024
9f139de
add holidays
AxelTanda Feb 22, 2024
ee7bf7f
update comment
AxelTanda Feb 22, 2024
4cfae52
mispell
AxelTanda Feb 23, 2024
0969e0e
spacing
AxelTanda Feb 23, 2024
146cc9f
Merge pull request #73 from TandaHQ/update_singapore_holidays2
AxelTanda Feb 23, 2024
2e0e11a
wrong month
AxelTanda Feb 23, 2024
95807fe
add 2023 to singapore holidays
AxelTanda Feb 23, 2024
a056a35
fix up grammar
AxelTanda Feb 23, 2024
ffa5a55
go off ph.sg website
AxelTanda Feb 26, 2024
de51072
Invalid Octal digits
AxelTanda Feb 26, 2024
9dc3e45
return nil if no year
AxelTanda Feb 27, 2024
d99b284
Hotfix: Added easter sunday holiday for SA
MossJTanda Feb 28, 2024
2a4e0b7
Return to OG
MossJTanda Feb 28, 2024
622e621
Hotfix: manually added the holiday
MossJTanda Feb 28, 2024
cb4e8e7
Merge pull request #76 from TandaHQ/AddSAEasterSunday
MossJTanda Feb 28, 2024
a671aa0
hotfix: update a keyword to be correct
MossJTanda Feb 28, 2024
c7bfa10
Merge pull request #77 from TandaHQ/UpdateKeyword
MossJTanda Feb 28, 2024
c1f9e33
update naming for sg:
ScAziz Jun 17, 2024
e26496b
update st brigids day for 2025
ScAziz Jun 19, 2024
0dfab10
Merge pull request #79 from TandaHQ/update-st-brigids-day-date
ScAziz Jun 19, 2024
b1f6721
Fix St Brigid's Day for Ireland not being configured properly
DanielGilchrist Jan 30, 2025
5cc24c6
Update sg.yaml
mustafanda Apr 15, 2025
9671ab1
mergin
mustafanda May 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
474 changes: 323 additions & 151 deletions au.yaml

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions be_fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ months:
regions: ['be_fr']
function: easter(year)
function_modifier: 39
- name: Pentecôte
regions: ['be_fr']
function: easter(year)
function_modifier: 49
- name: Lundi de Pentecôte
regions: ['be_fr']
function: easter(year)
Expand Down Expand Up @@ -84,12 +80,6 @@ tests:
options: ["informal"]
expect:
name: 'Ascension'
- given:
date: '2007-05-27'
regions: ['be_fr']
options: ["informal"]
expect:
name: 'Pentecôte'
- given:
date: '2007-05-28'
regions: ['be_fr']
Expand Down
10 changes: 0 additions & 10 deletions be_nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ months:
regions: [be_nl]
function: easter(year)
function_modifier: 39
- name: Pinksteren
regions: [be_nl]
function: easter(year)
function_modifier: 49
- name: Pinkstermaandag
regions: [be_nl]
function: easter(year)
Expand Down Expand Up @@ -84,12 +80,6 @@ tests:
options: ["informal"]
expect:
name: 'O.H. Hemelvaart'
- given:
date: '2007-05-27'
regions: ["be_nl"]
options: ["informal"]
expect:
name: 'Pinksteren'
- given:
date: '2007-05-28'
regions: ["be_nl"]
Expand Down
174 changes: 174 additions & 0 deletions cy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
# Cyprus holiday definitions for the Ruby Holiday gem.
#
# Created: 2023-11-13.
# Sources:
# https://www.officeholidays.com/countries/cyprus/2023
# https://www.officeholidays.com/countries/cyprus/2024
# https://en.wikipedia.org/wiki/Public_holidays_in_Cyprus
---
months:
0:
- name: Μεγάλη Παρασκευή
regions: [cy]
function: orthodox_easter(year)
function_modifier: -2
- name: Μεγάλο Σάββατο
regions: [cy]
function: orthodox_easter(year)
function_modifier: -1
- name: Κυριακή του Πάσχα
regions: [cy]
function: orthodox_easter(year)
- name: Δευτέρα του Πάσχα
regions: [cy]
function: orthodox_easter(year)
function_modifier: 1
- name: Καθαρά Δευτέρα
regions: [cy]
function: orthodox_easter(year)
function_modifier: -48
- name: Αγίου Πνεύματος
regions: [cy]
function: orthodox_easter(year)
function_modifier: 50
1:
- name: Πρωτοχρονιά
regions: [cy]
mday: 1
- name: Θεοφάνεια
regions: [cy]
mday: 6
3:
- name: Επέτειος της Επανάστασης του 1821
regions: [cy]
mday: 25
4:
- name: Εθνική Ημέρα της Κύπρου
regions: [cy]
mday: 1
5:
- name: Πρωτομαγιά
regions: [cy]
mday: 1
8:
- name: Κοίμηση της Θεοτόκου
regions: [cy]
mday: 15
10:
- name: Ημέρα Ανεξαρτησίας
regions: [cy]
mday: 1
- name: Επέτειος του Όχι
regions: [cy]
mday: 28
12:
- name: Χριστούγεννα
regions: [cy]
mday: 25
- name: Ημέρα Πυγμαχίας
regions: [cy]
mday: 26

tests:
- given:
date: '2023-04-01'
regions: ["cy"]
options: ["informal"]
expect:
name: "Εθνική Ημέρα της Κύπρου"
- given:
date: '2023-10-01'
regions: ["cy"]
options: ["informal"]
expect:
name: "Ημέρα Ανεξαρτησίας"
- given:
date: '2011-01-01'
regions: ["cy"]
options: ["informal"]
expect:
name: "Πρωτοχρονιά"
- given:
date: '2011-01-06'
regions: ["cy"]
options: ["informal"]
expect:
name: "Θεοφάνεια"
- given:
date: '2011-04-22'
regions: ["cy"]
options: ["informal"]
expect:
name: "Μεγάλη Παρασκευή"
- given:
date: '1970-04-25'
regions: ["cy"]
options: ["informal"]
expect:
name: "Μεγάλο Σάββατο"
- given:
date: '1985-04-14'
regions: ["cy"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2011-04-24'
regions: ["cy"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2027-05-02'
regions: ["cy"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2046-04-30'
regions: ["cy"]
options: ["informal"]
expect:
name: "Δευτέρα του Πάσχα"
- given:
date: '2011-05-01'
regions: ["cy"]
options: ["informal"]
expect:
name: "Πρωτομαγιά"
- given:
date: '2011-06-13'
regions: ["cy"]
options: ["informal"]
expect:
name: "Αγίου Πνεύματος"
- given:
date: '2012-06-04'
regions: ["cy"]
options: ["informal"]
expect:
name: "Αγίου Πνεύματος"
- given:
date: '2011-03-07'
regions: ["cy"]
options: ["informal"]
expect:
name: "Καθαρά Δευτέρα"
- given:
date: '2012-02-27'
regions: ["cy"]
options: ["informal"]
expect:
name: "Καθαρά Δευτέρα"
- given:
date: '2011-12-25'
regions: ["cy"]
options: ["informal"]
expect:
name: "Χριστούγεννα"
- given:
date: '2011-12-26'
regions: ["cy"]
options: ["informal"]
expect:
name: "Δεύτερη ημέρα των Χριστουγέννων"
15 changes: 6 additions & 9 deletions doc/SYNTAX.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,16 @@ Then the holiday will be returned. This is especially useful for holidays like "

### Year ranges

Certain holidays in various countries are only in effect during specific year ranges. A few examples of this are:
Certain holidays in various countries are only in effect during specific year ranges. For example, a new holiday might come into effect that is only valid after a specific year (say, 2017). After is inclusive, if you put after: 2017 it will apply on 2017 and after.

* A new holiday that starts in 2017 and continues into the future
* An existing holiday that has been cancelled so that the final year in effect is 2019
* A historical holiday that was only in effect from 2002 through 2006
To address this we have the ability to specify these 'year ranges' in the definition. The gem will then only return a match on a date that adheres to these rules.

To address these kinds of scenarios we have the ability to specify 'year ranges' for individual holiday definitions. There are a total of four selectors that can be specified. All must be specified in terms of 'years'. Only one selector can be used at a time.
There are a total of four selectors that can be specified. All must be specified in terms of 'years'.

#### `until`
#### `before`

The 'until' selector will only return a match if the supplied date takes place in the same year as the holiday or earlier.

A single integer representing a year *must* be supplied. An array of values will result in an error.
The 'before' selector will only find a match if the supplied date takes place
before or equal to the holiday.

Example:

Expand Down
2 changes: 2 additions & 0 deletions es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ months:
regions: [es]
mday: 1
observed: to_monday_if_sunday(date)
year_ranges:
- before: 2022
- name: Día de Reyes
regions: [es]
mday: 6
Expand Down
Loading
Loading