1 |
- import{_ as a,c as s,a2 as t,o as n}from"./chunks/framework.BI-rd6Wj.js";const u=JSON.parse('{"title":"中国节假日","description":"","frontmatter":{},"headers":[],"relativePath":"guide/what-is-chinese-days.md","filePath":"zh/guide/what-is-chinese-days.md"}'),o={name:"guide/what-is-chinese-days.md"};function i(r,e,d,c,l,h){return n(),s("div",null,e[0]||(e[0]=[t('<h1 id="中国节假日" tabindex="-1">中国节假日 <a class="header-anchor" href="#中国节假日" aria-label="Permalink to "中国节假日""></a></h1><h2 id="介绍" tabindex="-1">介绍 <a class="header-anchor" href="#介绍" aria-label="Permalink to "介绍""></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 "非 `JS` 语言""></a></h2><p>如果你不使用 <code>JS</code> 或 <code>TS</code> 开发项目,本项目提供了中国节假日的 <a href="https://cdn.jsdelivr.net/npm/chinese-days/dist/chinese-days.json" target="_blank" rel="noreferrer">chinese-days.json</a> 文件,可以通过下面的 CDN 链接进行使用。</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>https://cdn.jsdelivr.net/npm/chinese-days/dist/chinese-days.json</span></span></code></pre></div><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 "许可信息""></a></h2><p>项目基于 MIT 许可发布。</p>',12)]))}const g=a(o,[["render",i]]);export{u as __pageData,g as default};
|