forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ecb_target.yaml
74 lines (73 loc) · 1.57 KB
/
ecb_target.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
# ECB TARGET Closing Days
#
# Updated: 2014-01-04.
# Sources:
# - http://www.ecb.europa.eu/home/html/holidays.en.html
# - http://www.ecb.europa.eu/press/pr/date/2000/html/pr001214_4.en.html
---
months:
0:
- name: Good Friday
regions: [ecb_target]
function: easter(year)
function_modifier: -2
- name: Easter Monday
regions: [ecb_target]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ecb_target]
mday: 1
5:
- name: Labour Day
regions: [ecb_target]
mday: 1
12:
- name: Christmas Day
regions: [ecb_target]
mday: 25
- name: Christmas Holiday
regions: [ecb_target]
mday: 26
tests:
- given:
date: '2013-01-01'
regions: ["ecb_target"]
expect:
name: "New Year's Day"
- given:
date: '2013-05-01'
regions: ["ecb_target"]
expect:
name: "Labour Day"
- given:
date: '2013-03-29'
regions: ["ecb_target"]
expect:
name: "Good Friday"
- given:
date: '2013-04-01'
regions: ["ecb_target"]
expect:
name: "Easter Monday"
- given:
date: '2013-12-25'
regions: ["ecb_target"]
expect:
name: "Christmas Day"
- given:
date: '2013-12-26'
regions: ["ecb_target"]
expect:
name: "Christmas Holiday"
- given:
date: '2013-03-29'
regions: ["ecb_target"]
expect:
name: "Good Friday"
- given:
date: '2013-04-01'
regions: ["ecb_target"]
expect:
name: "Easter Monday"