-
Notifications
You must be signed in to change notification settings - Fork 136
/
my.yaml
79 lines (75 loc) · 1.72 KB
/
my.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
# Malaysia holiday definitions for the Holidays gem!
# Days not included in the definitions (yet):
# Vesak Day (falls on the first full moon in May)
# Lunar New Year (falls on the first day of the Lunar Calendar)
# Hari Raya Puasa and Hari Raya Haji (based on moon sightings, Islamic Calendar)
# Deepavali (15th Day of September or October, based on the Hindu Calendar)
# Source:
# http://publicholidays.com.my/
months:
1:
- name: New Year's Day
regions: [my]
mday: 1
observed: to_weekday_if_weekend(date)
5:
- name: Labour Day
regions: [my]
mday: 1
6:
- name: Agong's Birthday
regions: [my]
mday: 4
observed: to_weekday_if_weekend(date)
8:
- name: Independence Day
regions: [my]
mday: 31
observed: to_weekday_if_weekend(date)
9:
- name: Malaysia Day
regions: [my]
mday: 16
observed: to_weekday_if_weekend(date)
12:
- name: Christmas Day
regions: [my]
mday: 25
observed: to_weekday_if_weekend(date)
tests:
- given:
date: '2016-01-01'
regions: ["my"]
options: ["informal"]
expect:
name: "New Year's Day"
- given:
date: '2016-05-01'
regions: ["my"]
options: ["informal"]
expect:
name: "Labour Day"
- given:
date: '2016-06-04'
regions: ["my"]
options: ["informal"]
expect:
name: "Agong's Birthday"
- given:
date: '2016-08-31'
regions: ["my"]
options: ["informal"]
expect:
name: "Independence Day"
- given:
date: '2016-09-16'
regions: ["my"]
options: ["informal"]
expect:
name: "Malaysia Day"
- given:
date: '2016-12-25'
regions: ["my"]
options: ["informal"]
expect:
name: "Christmas Day"