← 返回
未分类 中文

Chinese Holidays

Query Chinese statutory holidays, check if a date is a working day/holiday, and get holiday schedules. Use when the user asks about Chinese holidays, working...
查询中国法定节假日,检查某日期是否为工作日/节假日,并获取节假日安排。当用户询问中国节假日、工作日相关问题时使用。
anlinxi
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 427
下载
💾 2
安装
1
版本
#latest

概述

Chinese Holidays

Query Chinese statutory holidays and working day status.

Quick Start

python scripts/holidays.py today
python scripts/holidays.py check 2025-01-01
python scripts/holidays.py list 2025

Commands

today — Check today's status

Check if today is a working day, holiday, or weekend.

python scripts/holidays.py today

Output:

2025-01-01 (Wednesday)
Status: HOLIDAY - New Year's Day (元旦)

check — Check specific date

Check if a specific date is a working day or holiday.

python scripts/holidays.py check 2025-02-10

Output:

2025-02-10 (Monday)
Status: HOLIDAY - Spring Festival (春节)

list — List all holidays in a year

List all statutory holidays for a given year.

python scripts/holidays.py list 2025

Output:

=== 2025 Chinese Statutory Holidays ===

1. New Year's Day (元旦)
   2025-01-01

2. Spring Festival (春节)
   2025-01-28 to 2025-02-04 (8 days)

3. Qingming Festival (清明节)
   2025-04-04 to 2025-04-06 (3 days)

4. Labor Day (劳动节)
   2025-05-01 to 2025-05-05 (5 days)

5. Dragon Boat Festival (端午节)
   2025-05-31 to 2025-06-02 (3 days)

6. Mid-Autumn Festival (中秋节)
   2025-10-06 (1 day, combined with National Day)

7. National Day (国庆节)
   2025-10-01 to 2025-10-07 (7 days)

next — Find next holiday

Find the next upcoming holiday.

python scripts/holidays.py next

Output:

Next holiday: Spring Festival (春节)
Date: 2025-01-28 to 2025-02-04
Days until: 15 days

Return Codes

CodeMeaning
---------------
0Working day
1Weekend
2Statutory holiday
3Adjusted working day (调休)

Data Source

Holiday data is based on official announcements from the State Council of China (国务院办公厅). The script includes:

  • Statutory holiday dates
  • Adjusted working days (调休)
  • Holiday names in Chinese and English

Notes

  • Adjusted working days (调休) are weekends that become working days due to holiday adjustments
  • Some holidays may change based on official announcements - data is updated annually
  • Supports dates from 2024 onwards

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 16:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Gequhai Music

anlinxi
搜索并下载歌曲海音乐,支持搜索歌曲、获取无损/高品质下载链接,可一键下载到群晖NAS。用于用户询问歌曲、搜索或下载音乐。
★ 1 📥 620

Epic Free Games

anlinxi
自动领取Epic游戏商城免费游戏。适配2026最新页面,支持持久登录,完成全套领取流程(获取→下单→...)。
★ 1 📥 637

Pixel Art Processing

anlinxi
像素艺术精灵图处理工具 — 视频帧提取、GIF/帧转换、精灵图合成/拆分、图像抠图、像素化、缩放、裁剪...
★ 1 📥 447