-
Notifications
You must be signed in to change notification settings - Fork 136
/
kr.yaml
166 lines (164 loc) · 3.58 KB
/
kr.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
159
160
161
162
163
164
165
166
# Republic of Korea holiday definitions for the Ruby Holiday gem.
# Provided by Jonathan Pike
#
# Updated: 2017-08-09.
# Sources:
# - https://en.wikipedia.org/wiki/List_of_public_holidays_in_South_Korea
# - http://www.hko.gov.hk/gts/time/conversion.htm (for Lunar Calendar Conversions)
#
# For Korean/English translations of each holiday:
# - https://ko.wikipedia.org/wiki/%EB%8C%80%ED%95%9C%EB%AF%BC%EA%B5%AD%EC%9D%98_%EA%B3%B5%ED%9C%B4%EC%9D%BC
---
months:
1:
- name: 설날
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 1
- name: 설날 연휴
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 2
- name: 신정
regions: [kr]
mday: 1
3:
- name: 3·1절
regions: [kr]
mday: 1
4:
- name: 석가탄신일
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 8
5:
- name: 어린이날
regions: [kr]
mday: 5
6:
- name: 현충일
regions: [kr]
mday: 6
7:
- name: 제헌절
regions: [kr]
mday: 17
type: informal
8:
- name: 추석 연휴
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 14
- name: 추석
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 15
- name: 추석 연휴
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 16
- name: 광복절
regions: [kr]
mday: 15
10:
- name: 개천절
regions: [kr]
mday: 3
- name: 한글날
regions: [kr]
mday: 9
12:
- name: 크리스마스
regions: [kr]
mday: 25
- name: 설날 연휴
regions: [kr]
function: lunar_to_solar(year, month, day, region)
mday: 30
tests:
- given:
date: '2016-02-08'
regions: ["kr"]
options: ["informal"]
expect:
name: "설날"
- given:
date: '2017-01-29'
regions: ["kr"]
options: ["informal"]
expect:
name: "설날 연휴"
- given:
date: '2016-05-14'
regions: ["kr"]
options: ["informal"]
expect:
name: "석가탄신일"
- given:
date: '2016-09-15'
regions: ["kr"]
options: ["informal"]
expect:
name: "추석"
- given:
date: '2016-03-01'
regions: ["kr"]
options: ["informal"]
expect:
name: "3·1절"
- given:
date: '2016-05-05'
regions: ["kr"]
options: ["informal"]
expect:
name: "어린이날"
- given:
date: '2016-06-06'
regions: ["kr"]
options: ["informal"]
expect:
name: "현충일"
- given:
date: '2016-07-17'
regions: ["kr"]
options: ["informal"]
expect:
name: "제헌절"
- given:
date: '2016-08-15'
regions: ["kr"]
options: ["informal"]
expect:
name: "광복절"
- given:
date: '2016-10-03'
regions: ["kr"]
options: ["informal"]
expect:
name: "개천절"
- given:
date: '2016-10-09'
regions: ["kr"]
options: ["informal"]
expect:
name: "한글날"
- given:
date: '2016-12-25'
regions: ["kr"]
options: ["informal"]
expect:
name: "크리스마스"
- given:
date: '2017-01-28'
regions: ["kr"]
options: ["informal"]
expect:
name: "설날"
# These are commented out until I can have a discussion and better understand these holidays.
# Please see [issue 69](https://github.com/holidays/definitions/issues/69) (nice) for more information.
# - given:
# date: '2017-10-04'
# regions: ["kr"]
# options: ["informal"]
# expect:
# name: "추석"