Skip to content

Commit

Permalink
Add South Korea's temporary public holidays
Browse files Browse the repository at this point in the history
Add South Korea's temporary public holidays to January 27th, 2025.
  • Loading branch information
YiGeon committed Jan 8, 2025
1 parent f5f00ab commit 89ebe46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions holidays/countries/south_korea.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def _populate_observed(self, dts: set[date], three_day_holidays: dict[date, str]
if not self._is_observed(dt):
continue
dt_observed = self._get_observed_date(
dt, SUN_TO_NEXT_WORKDAY if dt in three_day_holidays else SAT_SUN_TO_NEXT_WORKDAY
dt,
(SUN_TO_NEXT_WORKDAY if dt in three_day_holidays else SAT_SUN_TO_NEXT_WORKDAY),
)
if dt_observed != dt or len(self.get_list(dt)) > 1:
if dt_observed == dt:
Expand Down Expand Up @@ -333,7 +334,7 @@ class SouthKoreaLunisolarHolidays(_CustomChineseHolidays):
class SouthKoreaStaticHolidays:
"""
References:
- https://namu.wiki/w/임시공휴일 *
- https://namu.wiki/w/임ㅜ시공휴일 *
- https://namu.wiki/w/공휴일/대한민국 **
- https://namu.wiki/w/대체%20휴일%20제도
Expand Down Expand Up @@ -617,6 +618,8 @@ class SouthKoreaStaticHolidays:
2023: (OCT, 2, temporary_public_holiday),
# 76th Anniversary of the Armed Forces of Korea.
2024: (OCT, 1, armed_forces_day),
# Added to create a 6-day long holiday period.
2025: (JAN, 27, temporary_public_holiday),
}
# Pre-2014 Alternate Holidays
# https://namu.wiki/w/대체%20휴일%20제도#s-4.2.1
Expand Down

0 comments on commit 89ebe46

Please sign in to comment.