-
Notifications
You must be signed in to change notification settings - Fork 136
/
ecbtarget.yaml
74 lines (73 loc) · 1.55 KB
/
ecbtarget.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: [ecbtarget]
function: easter(year)
function_modifier: -2
- name: Easter Monday
regions: [ecbtarget]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ecbtarget]
mday: 1
5:
- name: Labour Day
regions: [ecbtarget]
mday: 1
12:
- name: Christmas Day
regions: [ecbtarget]
mday: 25
- name: Christmas Holiday
regions: [ecbtarget]
mday: 26
tests:
- given:
date: '2013-01-01'
regions: ["ecbtarget"]
expect:
name: "New Year's Day"
- given:
date: '2013-05-01'
regions: ["ecbtarget"]
expect:
name: "Labour Day"
- given:
date: '2013-03-29'
regions: ["ecbtarget"]
expect:
name: "Good Friday"
- given:
date: '2013-04-01'
regions: ["ecbtarget"]
expect:
name: "Easter Monday"
- given:
date: '2013-12-25'
regions: ["ecbtarget"]
expect:
name: "Christmas Day"
- given:
date: '2013-12-26'
regions: ["ecbtarget"]
expect:
name: "Christmas Holiday"
- given:
date: '2013-03-29'
regions: ["ecbtarget"]
expect:
name: "Good Friday"
- given:
date: '2013-04-01'
regions: ["ecbtarget"]
expect:
name: "Easter Monday"