运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install chinese-holidays
镜像加速npx clawhub@latest install chinese-holidays --registry https://cn.longxiaskill.com 镜像可用
技能文档
查询中国法定节假日和工作日状态。 快速开始 python scripts/holidays.py today python scripts/holidays.py check 2025-01-01 python scripts/holidays.py list 2025 命令 today — 查询今天的状态 检查今天是否为工作日、节假日或周末。 python scripts/holidays.py today 输出: 2025-01-01 (星期三) 状态:节假日 - 元旦 check <日期> — 查询特定日期 检查特定日期是否为工作日或节假日。 python scripts/holidays.py check 2025-02-10 输出: 2025-02-10 (星期一) 状态:节假日 - 春节 list <年> — 列出一年中的所有节假日 列出给定年份的所有法定节假日。 python scripts/holidays.py list 2025 输出: === 2025 年中国法定节假日 ===
- 元旦 2025-01-01
- 春节 2025-01-28 至 2025-02-04 (8 天)
- 清明节 2025-04-04 至 2025-04-06 (3 天)
- 劳动节 2025-05-01 至 2025-05-05 (5 天)
- 端午节 2025-05-31 至 2025-06-02 (3 天)
- 中秋节 2025-10-06 (1 天,與国庆节合并)
- 国庆节 2025-10-01 至 2025-10-07 (7 天)