China Work Calendar

v1.0.2

中国法定节假日与工作日计算器。查某年某月工作天数、某日期是否上班、距离节假日倒计时、调休换休提示。支持2024-2027年全部法定节假日及已知调休日。When the user asks about Chinese holidays, workdays, overtime, holiday countdown,...

0· 16·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for darbling/china-work-calendar.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "China Work Calendar" (darbling/china-work-calendar) from ClawHub.
Skill page: https://clawhub.ai/darbling/china-work-calendar
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install darbling/china-work-calendar

ClawHub CLI

Package manager switcher

npx clawhub@latest install china-work-calendar
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description match the provided code and SKILL.md. The script implements checks for workdays, counts workdays, lists holidays, and supports countdowns for 2024–2027 as claimed.
Instruction Scope
SKILL.md directs the agent to run the included python3 script with specific commands; the script operates on built-in data and prints JSON. The script does not access files, network, or environment variables. Minor note: input parsing (parse_date) has no defensive validation and will raise on malformed input.
Install Mechanism
No install spec; this is instruction-only with a bundled script. No downloads or archive extraction are performed.
Credentials
No environment variables, credentials, or external config paths are requested or used. All holiday and adjusted-workday data is embedded in the script.
Persistence & Privilege
always is false and the skill does not modify agent/system configuration or request persistent presence. It does not store credentials or change other skills.
Assessment
This skill runs a local Python script (python3) and uses embedded holiday data for 2024–2027 only. It requests no credentials and makes no network calls, so it is low-risk to run locally; ensure you have python3 available. Be aware the data is static and not guaranteed accurate—verify important dates with official sources. Also note the script will error on malformed date inputs; if you need broader year coverage or robust input handling, request an updated version before relying on it for critical decisions.

Like a lobster shell, security has layers — review code before you run it.

calendarvk97adpnqxaw3fcn961jtrcn2yx85m2ctchinavk97adpnqxaw3fcn961jtrcn2yx85m2ctchinesevk97adpnqxaw3fcn961jtrcn2yx85m2ctholidayvk97adpnqxaw3fcn961jtrcn2yx85m2ctlatestvk97adpnqxaw3fcn961jtrcn2yx85m2ctutilityvk97adpnqxaw3fcn961jtrcn2yx85m2ctworkdayvk97adpnqxaw3fcn961jtrcn2yx85m2ct
16downloads
0stars
3versions
Updated 30m ago
v1.0.2
MIT-0

中国工作日历计算器

Author: Lin Hui | Version 1.0.0 | MIT License

快速、准确地计算中国法定节假日、调休工作日和节假日倒计时。

核心功能

  • ✅ 查任意日期是否为工作日
  • ✅ 计算两个日期之间的工作日数
  • ✅ 查某年某月的工作日总数
  • ✅ 节假日倒计时(距离某节假日还剩几天)
  • ✅ 调休提示(哪个周末要上班)
  • ✅ 支持 2024–2027 年全部法定节假日

触发词(Trigger Words)

"今天上班吗" / "这周还剩几个工作日" / "清明节放几天" / "距离春节还有多少天" / "元旦加班怎么算" / "这月有多少个工作日" / "国庆节调休哪几天要上班" / "下周一是工作日吗" / "本月工作日" / "今年所有假期"

使用示例

查询某日是否为工作日

输入:

2026-04-27

输出示例:

{
  "date": "2026-04-27",
  "weekday": "周一",
  "is_workday": true,
  "label": "工作日"
}

计算工作日数

输入: 2026-04-012026-04-30

输出示例:

{
  "start": "2026-04-01",
  "end": "2026-04-30",
  "workdays_count": 22,
  "holidays_this_month": ["清明节 4月3日-5日"]
}

节假日倒计时

输入: 2026-06-20(端午节)

输出示例:

{
  "target": "2026-06-20",
  "days_remaining": 54,
  "is_workday": false,
  "label": "休息日/节假日"
}

本月工作日总数

输入: 2026-04

输出示例:

{
  "year": 2026,
  "month": 4,
  "workdays_count": 22,
  "workdays": ["2026-04-01","2026-04-02","2026-04-03",...]
}

调休提示(国庆/春节等长假的调休日)

2026年国庆节:10月1日-7日放假
⚠️ 调休上班日:9月26日(周六)、10月3日(周六)、10月10日(周六)

技术实现

调用 python3 脚本,零外部依赖:

python3 scripts/china_work_calendar.py workdays <start> <end>
python3 scripts/china_work_calendar.py is-workday <yyyy-mm-dd>
python3 scripts/china_work_calendar.py holidays <year>
python3 scripts/china_work_calendar.py countdown <yyyy-mm-dd>
python3 scripts/china_work_calendar.py next-workday <yyyy-mm-dd>

支持的节假日(2024-2027)

节日日期天数
元旦1月1日1天
春节农历正月初一7天
清明节4月4/5日3天
劳动节5月1日3-5天
端午节农历五月初五3天
中秋节农历八月十五3天
国庆节10月1日7天

常见场景

场景查询方式
今天上班吗is-workday 今天日期
报销/加班核算workdays 出勤日期区间
请假多少天workdays 请假首日 请假末日
出行计划countdown 节假日日期
本月还剩几天班workdays 今天 本月末

注意事项

  • 脚本内置 2024-2027 年调休数据,由国务院每年公布的调休通知驱动
  • 如需查询更远年份,请更新脚本中的 HOLIDAYSADJUSTED_WORKDAYS 数据
  • 数据来源:中国人民政府网《国务院办公厅关于XXXX年节假日安排的通知》

更新日志

v1.0.0 (2026-04)

  • 首发版本
  • 支持 2024-2027 年节假日计算
  • 支持调休/换休自动识别
  • 支持节假日倒计时
  • 支持月工作日统计

⚠️ Disclaimer

This tool is provided "as is" for informational purposes only. Data accuracy is not guaranteed. Not financial, legal, or professional advice. Always verify critical information from official sources.

本工具仅供信息参考,不保证数据完全准确,不构成任何金融/法律/专业建议。请以官方来源为准。

Comments

Loading comments...