Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 23-24 元旦假期 #118

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chinese_calendar/constants.py
Original file line number Diff line number Diff line change
@@ -558,6 +558,8 @@ def __new__(cls, english, chinese, days):
datetime.date(year=2023, month=10, day=4): Holiday.national_day.value,
datetime.date(year=2023, month=10, day=5): Holiday.national_day.value,
datetime.date(year=2023, month=10, day=6): Holiday.national_day.value,
datetime.date(year=2023, month=12, day=30): Holiday.new_years_day.value,
datetime.date(year=2023, month=12, day=31): Holiday.new_years_day.value,
datetime.date(year=2024, month=1, day=1): Holiday.new_years_day.value,
datetime.date(year=2024, month=2, day=10): Holiday.spring_festival.value,
datetime.date(year=2024, month=2, day=11): Holiday.spring_festival.value,
3 changes: 2 additions & 1 deletion chinese_calendar/scripts/data.py
Original file line number Diff line number Diff line change
@@ -101,7 +101,8 @@ def _2023(self):
.ld().rest(4, 29).to(5, 3).work(4, 23).work(5, 6).in_lieu(5, 2).to(5, 3) \
.dbf().rest(6, 22).to(6, 24).work(6, 25).in_lieu(6, 23) \
.maf().rest(9, 29) \
.nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6)
.nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6)\
.nyd().rest(12, 30).to(12, 31)

def _2022(self):
""" http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm