0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-calendar/vendor/holidays/definitions/ng.yaml
2025-07-15 16:38:05 +02:00

97 lines
No EOL
1.9 KiB
YAML
Vendored

# Nigeria holiday definitions for the Ruby Holiday gem.
# Updated: 2020-04-28
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Nigeria
---
months:
0:
- name: Good Friday
regions: [ng]
function: easter(year)
function_modifier: -2
- name: Easter Monday
regions: [ng]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
5:
- name: Workers' Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
- name: Children's Day
regions: [ng]
mday: 27
type: informal
6:
- name: Democracy Day
regions: [ng]
mday: 12
year_ranges:
from: 2018
10:
- name: Independence Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
12:
- name: Christmas Day
regions: [ng]
mday: 25
observed: to_monday_if_weekend(date)
- name: Boxing Day
regions: [ng]
mday: 26
observed: to_weekday_if_boxing_weekend(date)
tests:
- given:
date: '2008-03-21'
regions: ["ng"]
expect:
name: "Good Friday"
- given:
date: '2008-03-24'
regions: ["ng"]
expect:
name: "Easter Monday"
- given:
date: '2008-01-01'
regions: ["ng"]
expect:
name: "New Year's Day"
- given:
date: '2008-05-01'
regions: ["ng"]
expect:
name: "Workers' Day"
- given:
date: '2008-05-27'
regions: ["ng"]
options: ["informal"]
expect:
name: "Children's Day"
- given:
date: '2019-06-12'
regions: ["ng"]
expect:
name: "Democracy Day"
- given:
date: '2008-10-01'
regions: ["ng"]
expect:
name: "Independence Day"
- given:
date: '2008-12-25'
regions: ["ng"]
expect:
name: "Christmas Day"
- given:
date: '2008-12-26'
regions: ["ng"]
expect:
name: "Boxing Day"