forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
northamericainformal.yaml
105 lines (104 loc) · 1.96 KB
/
northamericainformal.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Informal North American holiday definitions for the Ruby Holiday gem.
# Updated 2008-11-22.
---
months:
2:
- name: Groundhog Day
regions: [us, ca]
mday: 2
type: informal
- name: Valentine's Day
regions: [us, ca]
mday: 14
type: informal
3:
- name: St. Patrick's Day
regions: [us, ca]
mday: 17
type: informal
4:
- name: April Fool's Day
regions: [us, ca]
mday: 1
type: informal
- name: Earth Day
regions: [us, ca]
mday: 22
type: informal
5:
- name: Mother's Day
week: 2
regions: [us, ca]
wday: 0
type: informal
- name: Armed Forces Day
week: 3
regions: [us]
wday: 6
type: informal
6:
- name: Father's Day
week: 3
regions: [us, ca]
wday: 0
type: informal
10:
- name: Halloween
regions: [us, ca]
mday: 31
type: informal
tests:
- given:
date: '2013-02-02'
regions: ["us"]
options: ["informal"]
expect:
name: "Groundhog Day"
- given:
date: '2013-02-14'
regions: ["us"]
options: ["informal"]
expect:
name: "Valentine's Day"
- given:
date: '2013-03-17'
regions: ["us"]
options: ["informal"]
expect:
name: "St. Patrick's Day"
- given:
date: '2013-04-01'
regions: ["us"]
options: ["informal"]
expect:
name: "April Fool's Day"
- given:
date: '2013-04-22'
regions: ["us"]
options: ["informal"]
expect:
name: "Earth Day"
- given:
date: '2013-05-12'
regions: ["us"]
options: ["informal"]
expect:
name: "Mother's Day"
- given:
date: '2013-05-18'
regions: ["us"]
options: ["informal"]
expect:
name: "Armed Forces Day"
- given:
date: '2013-06-16'
regions: ["us"]
options: ["informal"]
expect:
name: "Father's Day"
- given:
date: '2013-10-31'
regions: ["us"]
options: ["informal"]
expect:
name: "Halloween"