Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

chinese-calendar

> 编程语言
Open source

判断一天是不是法定节假日/法定工作日(查看节假日安排)

1.4K stars0 likes1 views
WebsiteGitHub

About

判断一天是不是法定节假日/法定工作日(查看节假日安排)

中国节假日

判断某年某月某一天是不是工作日/节假日。 支持 2004年 至 2026年,包括 2020年 的春节延长。

安装

bash
pip install chinesecalendar

升级

bash
pip install -U chinesecalendar

由于次年的节假日安排,取决于国务院发布的日程。 所以本项目一般会在国务院更新以后,发布新的版本。 按照以往的经验,一般是每年的 11月 前后发布新版本。

样例

…

其它语言

假如你没法使用Python, 你也可以转译现成的常量文件来获取最全的节假日安排表。

贡献代码

  1. Fork + Clone 项目到本地
  2. 修改节假日定义
  3. 执行脚本自动生成常量文件
  4. 提交PR

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythoncalendarchinese-calendarchinese-holidayholidays

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言