forked from TandaHQ/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
th.yaml
144 lines (143 loc) · 3.09 KB
/
th.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
# Thai holiday definitions for the Ruby Holiday gem.
#
# Updated: 2018-10-17.
# Sources:
# - Photo in this trello card https://trello.com/c/zSDdA4Zy/39-add-public-holidays
---
months:
1:
- name: New Year's Day
regions: [th]
mday: 1
observed: to_monday_if_weekend(date)
3:
- name: Makha Bucha Day
regions: [th]
mday: 1
4:
- name: Chakri Memorial Day
regions: [th]
mday: 6
- name: Songkran Day
regions: [th]
mday: 13
- name: Songkran Festival
regions: [th]
mday: 16
5:
- name: National Labour Day
regions: [th]
mday: 1
- name: Wisakha Bucha Day
regions: [th]
mday: 29
7:
- name: Asarnha Bucha Day
regions: [th]
mday: 27
- name: H.M. King Maha Vajiralongkorn Bodindradebayavarangkun's Birthday
regions: [th]
mday: 28
observed: to_monday_if_weekend(date)
8:
- name: H.M. Queen Sirikit's Birthday
regions: [th]
mday: 12
observed: to_monday_if_weekend(date)
10:
- name: Commemoration of the Passing King Bhumibol
regions: [th]
mday: 13
observed: to_monday_if_weekend(date)
- name: Chulalongkorn Day
regions: [th]
mday: 23
12:
- name: Late King Bhumibol Adulyadej's Birthday, National Day and National Father's Day
regions: [th]
mday: 5
- name: Constitution Day
regions: [th]
mday: 10
- name: Year's End Day
regions: [th]
mday: 31
tests:
- given:
date: '2016-01-01'
regions: ["th"]
expect:
name: "New Year's Day"
- given:
date: '2016-03-01'
regions: ["th"]
expect:
name: "Makha Bucha Day"
- given:
date: '2016-04-06'
regions: ["th"]
expect:
name: "Chakri Memorial Day"
- given:
date: '2016-04-13'
regions: ["th"]
expect:
name: "Songkran Day"
- given:
date: '2016-04-16'
regions: ["th"]
expect:
name: "Songkran Festival"
- given:
date: '2016-05-01'
regions: ["th"]
expect:
name: "National Labour Day"
- given:
date: '2016-05-29'
regions: ["th"]
expect:
name: "Wisakha Bucha Day"
- given:
date: '2016-07-27'
regions: ["th"]
expect:
name: "Asarnha Bucha Day"
- given:
date: '2016-07-28'
regions: ["th"]
options: ["observed"]
expect:
name: "H.M. King Maha Vajiralongkorn Bodindradebayavarangkun's Birthday"
- given:
date: '2016-08-12'
regions: ["th"]
options: ["observed"]
expect:
name: "H.M. Queen Sirikit's Birthday"
- given:
date: '2016-10-13'
regions: ["th"]
options: ["observed"]
expect:
name: "Commemoration of the Passing King Bhumibol"
- given:
date: '2016-10-23'
regions: ["th"]
expect:
name: "Chulalongkorn Day"
- given:
date: '2016-12-05'
regions: ["th"]
expect:
name: "Late King Bhumibol Adulyadej's Birthday, National Day and National Father's Day"
- given:
date: '2016-12-10'
regions: ["th"]
expect:
name: "Constitution Day"
- given:
date: '2016-12-31'
regions: ["th"]
expect:
name: "Year's End Day"