discourse-calendar/vendor/holidays/definitions/kr.yaml

167 lines
3.6 KiB
YAML

# 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: "추석"