← 返回
开发者工具

Check Workday CN

Determine whether today (or a given date) is a working day in mainland China by querying holiday-cn yearly JSON from jsDelivr and applying holiday/makeup-wor...
判断今天(或指定日期)是否为中国大陆工作日,通过从 jsDelivr 获取 holiday-cn 年度 JSON 并应用假期/调休规则。
sube-py
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 521
下载
💾 6
安装
1
版本
#latest

概述

Check Workday CN

Check whether today is a workday with official holiday override data from:

https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{year}.json

Workflow

  1. Run python3 scripts/check_today_workday.py.
  2. Read is_workday from output.
  3. Explain reason:
    • If date exists in days[], use isOffDay directly (false => workday, true => off day).
    • If date does not exist in days[], fall back to weekday rule (Mon-Fri workday, Sat-Sun off day).

Commands

Use today in Asia/Shanghai:

python3 scripts/check_today_workday.py

Check specific date:

python3 scripts/check_today_workday.py --date 2026-02-15

Machine-readable output:

python3 scripts/check_today_workday.py --json

Output Contract

Always return:

  • Queried date (YYYY-MM-DD)
  • is_workday boolean
  • Reason (holiday override or weekday fallback)
  • Data source URL

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 21:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

PDFlux Test

sube-py
将非结构化文档转为LLM可用的结构化数据,支持PDF、Word、PPT、图片;提取段落、公式、表格、图表等...
★ 1 📥 377
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,185
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,799