diff --git a/data/countries/AU.yaml b/data/countries/AU.yaml index c9d5e1bf..00fb231e 100644 --- a/data/countries/AU.yaml +++ b/data/countries/AU.yaml @@ -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 diff --git a/test/fixtures/AU-NSW-2015.json b/test/fixtures/AU-NSW-2015.json index 9a71aa59..490271cb 100644 --- a/test/fixtures/AU-NSW-2015.json +++ b/test/fixtures/AU-NSW-2015.json @@ -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", diff --git a/test/fixtures/AU-NSW-2020.json b/test/fixtures/AU-NSW-2020.json index 686c327c..badab8fa 100644 --- a/test/fixtures/AU-NSW-2020.json +++ b/test/fixtures/AU-NSW-2020.json @@ -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", diff --git a/test/fixtures/AU-NSW-2026.json b/test/fixtures/AU-NSW-2026.json index 84dd3d9c..f1699d10 100644 --- a/test/fixtures/AU-NSW-2026.json +++ b/test/fixtures/AU-NSW-2026.json @@ -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", diff --git a/test/fixtures/AU-NSW-2027.json b/test/fixtures/AU-NSW-2027.json index 690e9710..a5a08542 100644 --- a/test/fixtures/AU-NSW-2027.json +++ b/test/fixtures/AU-NSW-2027.json @@ -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",