Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 14 additions & 1 deletion data/countries/AU.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,25 @@ holidays:
1st monday in October:
name:
en: Labour Day
# @source https://www.legislation.nsw.gov.au/~/pdf/view/act/2010/115/whole
# @source https://www.legislation.nsw.gov.au/view/whole/html/inforce/current/act-2010-115
# @source https://www.legislation.nsw.gov.au/view/whole/html/inforce/current/sl-2011-0081
NSW:
name: New South Wales
zones:
- Australia/Sydney
days:
04-25 and if saturday then next monday:
substitute: true
name:
en: Anzac Day
active:
- to: "2026-04-25"
04-25 and if saturday,sunday then next monday:
substitute: true
name:
en: Anzac Day
active:
- from: "2026-04-25"
2nd monday in June:
name:
en: Queen's Birthday
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/AU-NSW-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
"rule": "04-25",
"_weekday": "Sat"
},
{
"date": "2015-04-27 00:00:00",
"start": "2015-04-26T14:00:00.000Z",
"end": "2015-04-27T14:00:00.000Z",
"name": "Anzac Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "04-25 and if saturday then next monday",
"_weekday": "Mon"
},
{
"date": "2015-05-10 00:00:00",
"start": "2015-05-09T14:00:00.000Z",
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/AU-NSW-2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
"rule": "04-25",
"_weekday": "Sat"
},
{
"date": "2020-04-27 00:00:00",
"start": "2020-04-26T14:00:00.000Z",
"end": "2020-04-27T14:00:00.000Z",
"name": "Anzac Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "04-25 and if saturday then next monday",
"_weekday": "Mon"
},
{
"date": "2020-05-10 00:00:00",
"start": "2020-05-09T14:00:00.000Z",
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/AU-NSW-2026.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
"rule": "04-25",
"_weekday": "Sat"
},
{
"date": "2026-04-27 00:00:00",
"start": "2026-04-26T14:00:00.000Z",
"end": "2026-04-27T14:00:00.000Z",
"name": "Anzac Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "04-25 and if saturday,sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2026-05-10 00:00:00",
"start": "2026-05-09T14:00:00.000Z",
Expand Down
10 changes: 10 additions & 0 deletions test/fixtures/AU-NSW-2027.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
"rule": "04-25",
"_weekday": "Sun"
},
{
"date": "2027-04-26 00:00:00",
"start": "2027-04-25T14:00:00.000Z",
"end": "2027-04-26T14:00:00.000Z",
"name": "Anzac Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "04-25 and if saturday,sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2027-05-09 00:00:00",
"start": "2027-05-08T14:00:00.000Z",
Expand Down
Loading