Query gov.cn Chinese holiday notices to determine workdays, holidays, and make-up workdays. Use when the user needs to check whether a specific date is a wor...
编程
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...
它能做什么
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...
技能文档
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
- Run
python3 scripts/check_today_workday.py. - Read
is_workdayfrom output. - Explain reason:
- If date exists in
days[], useisOffDaydirectly (false=> workday,true=> off day). - If date does not exist in
days[], fall back to weekday rule (Mon-Fri workday, Sat-Sun off day).
- If date exists in
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_workdayboolean- Reason (
holiday overrideorweekday fallback) - Data source URL
相关技能
Query gov.cn Chinese holiday notices to determine workdays, holidays, and make-up workdays. Use when the user needs to check whether a specific date is a wor...
Discover and parse China's official holiday notices from gov.cn, normalize holiday and adjusted-workday rows, and apply low-frequency probing rules for futur...
Look up official Mainland China public holiday schedules and make-up workdays from bundled annual reference data. Use when the user asks about 法定节假日, 放假安排, 调...
Research public holidays, bank holidays, observed days, school breaks, and make-up workdays for any country or region. Use when the user asks whether a speci...
Generate a personalized moving timeline & checklist based on your home info, timeline, and moving distance.