This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
/
canada.js
113 lines (110 loc) · 2.51 KB
/
canada.js
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
106
107
108
109
110
111
112
113
//! moment-holiday.js locale configuration
//! locale : Canada
//! author : Kodie Grantham : https://github.com/kodie
/* regions :
AB : Alberta
BC : British Columbia
MB : Manitoba
NB : New Brunswick
NL : Newfoundland and Labrador
NS : Nova Scotia
NT : Northwest Territories
NU : Nunavut
ON : Ontario
PE : Prince Edward Island
QC : Quebec
SK : Saskatchewan
*/
(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
moment.holidays.canada = {
"New Year's Day": {
date: '1/1',
keywords_n: ['eve'],
},
"Valentine's Day": {
date: '2/14'
},
"Islander Day": {
date: '2/(1,2)',
keywords_y: ['island'],
regions: ['pe']
},
"Family Day": {
date: '2/(1,3)',
regions: ['ab', 'bc', 'on', 'sk']
},
"Louis Riel Day": {
date: '2/(1,3)',
regions: ['mb']
},
"Saint Patrick's Day": {
date: '3/17',
keywords: ['st[\\s\\.]', 'paddy', 'patty']
},
"Good Friday": {
date: 'easter-2',
keywords_y: ['good', 'friday'],
regions_n: ['qc']
},
"Easter Sunday": {
date: 'easter',
},
"Victoria Day": {
date: '5/(1,[-24])',
regions_n: ['nb', 'nl', 'ns']
},
"Mother's Day": {
date: '5/(0,2)',
keywords: ['mom']
},
"Father's Day": {
date: '6/(0,3)',
keywords: ['dad']
},
"Aboriginal Day": {
date: '6/21',
regions: ['nt']
},
"Saint Jean Baptiste Day": {
date: '6/24',
keywords: ['st[\\s\\.]'],
regions: ['qc']
},
"Canada Day": {
date: '7/1',
},
"Civic Day": {
date: '8/(1,1)',
regions: ['ab', 'bc', 'nb', 'nu', 'on', 'sk']
},
"Labour Day": {
date: '9/(1,1)',
keywords: ['labor']
},
"Halloween": {
date: '10/31',
},
"Remembrance Day": {
date: '11/11',
regions_n: ['mb', 'ns', 'on', 'qc']
},
"Thanksgiving Day": {
date: '11/(4,4)',
keywords: ['thanks', 'turkey'],
keywords_n: ['after'],
regions_n: ['nb', 'nl', 'ns']
},
"Christmas Day": {
date: '12/25',
keywords: ['christ', 'x-?mas'],
keywords_n: ['eve']
},
"Boxing Day": {
date: '12/26',
keywords: ['box'],
regions: ['on']
}
};
if ((typeof module !== 'undefined' && module !== null ? module.exports : void 0) != null) { module.exports = moment; }
}).call(this);