import{_ as a,c as t,a2 as r,o as s}from"./chunks/framework.Ct9Y1XYN.js";const u=JSON.parse('{"title":"中国节假日","description":"","frontmatter":{},"headers":[],"relativePath":"guide/what-is-chinese-days.md","filePath":"zh/guide/what-is-chinese-days.md"}'),n={name:"guide/what-is-chinese-days.md"};function o(i,e,d,c,l,h){return s(),t("div",null,e[0]||(e[0]=[r('
本项目提供了一系列用于查询中国节假日、调休日、工作日、24节气、以及农历阳历互转的函数,此外还支持 iCal
文件订阅节假日,可供 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端订阅。
每日会定时执行 Github Action
自动抓取数据,节假日变化时发送邮件提醒,信息会跟随国务院发布进行更新。
项目主要针对 JS
或 TS
用户,使用方法可以看后续的文档。
JS
语言 如果你不使用 JS
或 TS
开发项目,本项目提供了中国节假日的 JSON
文件,通过链接 chinese-days.json 可以直接引用。
比如在 Java
中使用,可以参考 Warnier-zhang/java-chinese-days,仅用于查询中国节假日、调休日、工作日;
在 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端中,可以设置订阅地址:https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.ics 来获取日历订阅。
For English: https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.en.ics
订阅的日历包含近三年(2023-2025年)的节假日和调休日。
项目基于 MIT 许可发布。
',15)]))}const f=a(n,[["render",o]]);export{u as __pageData,f as default};