LKI / chinese-calendar

判断一天是不是法定节假日/法定工作日(查看节假日安排)
https://pypi.org/project/chinesecalendar/
MIT License
1.06k stars 185 forks source link

新增 2019 年节假日/调班节假日/调休工作日 #32

Closed fhrl94 closed 5 years ago

fhrl94 commented 5 years ago

新增 2019 年节假日/调班节假日/调休工作日 新增 2018-2-19 调休工作日 官方链接 2019年放假安排

LKI commented 5 years ago

超棒!~

应该是有个调休的 ut 在 2019 年没有更新数据~

先合了!下个 PR 去修复 + 发个新版

fhrl94 commented 5 years ago

2018年需要进行调整, 在你发完这个消息的时候, 我正好在 push

你可以进行比对 self.year_at(2018) \ .nyd().rest(1, 1) \ .sf().rest(2, 15).to(2, 21).work(2, 11).work(2, 24).in_lieu(2, 20).to(2, 21) \ .tsd().rest(4, 5).to(4, 7).work(4, 8).in_lieu(4, 6) \ .ld().rest(4, 29).to(5, 1).work(4, 28).in_lieu(4, 30) \ .dbf().rest(6, 18) \ .nd().rest(10, 1).to(10, 7).work(9, 29).to(9, 30).in_lieu(10, 4).to(10, 5) \ .maf().rest(9, 24)\ .nyd().work(12, 29).in_lieu(12, 31)