guide_what-is-chinese-days.md.Czv7pkPD.lean.js 3.1 KB

1
  1. 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('<h1 id="中国节假日" tabindex="-1">中国节假日 <a class="header-anchor" href="#中国节假日" aria-label="Permalink to &quot;中国节假日&quot;">​</a></h1><h2 id="介绍" tabindex="-1">介绍 <a class="header-anchor" href="#介绍" aria-label="Permalink to &quot;介绍&quot;">​</a></h2><p>本项目提供了一系列用于查询中国节假日、调休日、工作日、24节气、以及农历阳历互转的函数,此外还支持 <code>iCal</code> 文件订阅节假日,可供 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端订阅。</p><p>每日会定时执行 <code>Github Action</code> 自动抓取数据,节假日变化时发送邮件提醒,信息会跟随国务院发布进行更新。</p><ul><li><strong>节假日</strong>:支持 2004年 至 2025年,包括 2020年 的春节延长</li><li><strong>24节气</strong>:支持 1900年 至 2100年。</li><li><strong>农历日</strong>:支持 1900年 至 2100年。</li></ul><p>项目主要针对 <code>JS</code> 或 <code>TS</code> 用户,使用方法可以看后续的文档。</p><h2 id="非-js-语言" tabindex="-1">非 <code>JS</code> 语言 <a class="header-anchor" href="#非-js-语言" aria-label="Permalink to &quot;非 `JS` 语言&quot;">​</a></h2><p>如果你不使用 <code>JS</code> 或 <code>TS</code> 开发项目,本项目提供了中国节假日的 <code>JSON</code> 文件,通过链接 <a href="https://cdn.jsdelivr.net/npm/chinese-days/dist/chinese-days.json" target="_blank" rel="noreferrer">chinese-days.json</a> 可以直接引用。</p><p>比如在 <code>Java</code> 中使用,可以参考 <a href="https://github.com/Warnier-zhang/java-chinese-days" target="_blank" rel="noreferrer">Warnier-zhang/java-chinese-days</a>,仅用于查询中国节假日、调休日、工作日;</p><h2 id="日历订阅" tabindex="-1">日历订阅 <a class="header-anchor" href="#日历订阅" aria-label="Permalink to &quot;日历订阅&quot;">​</a></h2><p>在 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端中,可以设置订阅地址:<a href="https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.ics" target="_blank" rel="noreferrer">https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.ics</a> 来获取日历订阅。</p><p>For English: <a href="https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.en.ics" target="_blank" rel="noreferrer">https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.en.ics</a></p><p>订阅的日历包含近三年(2023-2025年)的节假日和调休日。</p><h2 id="许可信息" tabindex="-1">许可信息 <a class="header-anchor" href="#许可信息" aria-label="Permalink to &quot;许可信息&quot;">​</a></h2><p>项目基于 MIT 许可发布。</p>',15)]))}const f=a(n,[["render",o]]);export{u as __pageData,f as default};