-
Notifications
You must be signed in to change notification settings - Fork 136
/
gr.yaml
158 lines (157 loc) · 3.84 KB
/
gr.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Greek holiday definitions for the Ruby Holiday gem.
#
# Created: 2011-05-11.
# Sources:
# http://www.assa.org.au/edm.html
# http://fotios.org/node/1104
# http://www.faqs.org/faqs/calendars/faq/
# http://5dspace-time.org/Calendar/Algorithm.html - for offsets
# http://el.wikipedia.org/wiki/Επίσημες_αργίες_στην_Ελλάδα - for holidays
# http://www.eortologio.gr/arthra/pasxa.php - for holidays
---
months:
0:
- name: Μεγάλη Παρασκευή
regions: [gr]
function: orthodox_easter(year)
function_modifier: -2
- name: Μεγάλο Σάββατο
regions: [gr]
function: orthodox_easter(year)
function_modifier: -1
- name: Κυριακή του Πάσχα
regions: [gr]
function: orthodox_easter(year)
- name: Δευτέρα του Πάσχα
regions: [gr]
function: orthodox_easter(year)
function_modifier: 1
- name: Καθαρά Δευτέρα
regions: [gr]
function: orthodox_easter(year)
function_modifier: -48
- name: Αγίου Πνεύματος
regions: [gr]
function: orthodox_easter(year)
function_modifier: 50
1:
- name: Πρωτοχρονιά
regions: [gr]
mday: 1
- name: Θεοφάνεια
regions: [gr]
mday: 6
3:
- name: Επέτειος της Επανάστασης του 1821
regions: [gr]
mday: 25
5:
- name: Πρωτομαγιά
regions: [gr]
mday: 1
8:
- name: Κοίμηση της Θεοτόκου
regions: [gr]
mday: 15
10:
- name: Επέτειος του Όχι
regions: [gr]
mday: 28
12:
- name: Χριστούγεννα
regions: [gr]
mday: 25
- name: Δεύτερη ημέρα των Χριστουγέννων
regions: [gr]
mday: 26
tests:
- given:
date: '2011-01-01'
regions: ["gr"]
options: ["informal"]
expect:
name: "Πρωτοχρονιά"
- given:
date: '2011-01-06'
regions: ["gr"]
options: ["informal"]
expect:
name: "Θεοφάνεια"
- given:
date: '2011-04-22'
regions: ["gr"]
options: ["informal"]
expect:
name: "Μεγάλη Παρασκευή"
- given:
date: '1970-04-25'
regions: ["gr"]
options: ["informal"]
expect:
name: "Μεγάλο Σάββατο"
- given:
date: '1985-04-14'
regions: ["gr"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2011-04-24'
regions: ["gr"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2027-05-02'
regions: ["gr"]
options: ["informal"]
expect:
name: "Κυριακή του Πάσχα"
- given:
date: '2046-04-30'
regions: ["gr"]
options: ["informal"]
expect:
name: "Δευτέρα του Πάσχα"
- given:
date: '2011-05-01'
regions: ["gr"]
options: ["informal"]
expect:
name: "Πρωτομαγιά"
- given:
date: '2011-06-13'
regions: ["gr"]
options: ["informal"]
expect:
name: "Αγίου Πνεύματος"
- given:
date: '2012-06-04'
regions: ["gr"]
options: ["informal"]
expect:
name: "Αγίου Πνεύματος"
- given:
date: '2011-03-07'
regions: ["gr"]
options: ["informal"]
expect:
name: "Καθαρά Δευτέρα"
- given:
date: '2012-02-27'
regions: ["gr"]
options: ["informal"]
expect:
name: "Καθαρά Δευτέρα"
- given:
date: '2011-12-25'
regions: ["gr"]
options: ["informal"]
expect:
name: "Χριστούγεννα"
- given:
date: '2011-12-26'
regions: ["gr"]
options: ["informal"]
expect:
name: "Δεύτερη ημέρα των Χριστουγέννων"