Giter Club home page Giter Club logo

china-holiday-calender's Introduction

**节假日补班日历

Last Commit Telegram Group

说明

2022~2024年**放假、调休和补班日历 更新时间2024-01-03 18:20:37

支持3种类型的日历

  • holidayCal.ics 包含放假和调休
  • holidayCal-HO.ics 仅包含放假
  • holidayCal-CO.ics 仅包含调休

订阅地址

注:链接地址为完整日历,若仅需放假或调休日历,替换URL的日历名称即可

JSON API

特点

  1. 节假日信息来自**政府网,一手信息、权威准确
  2. 包含最近3年的节假日信息,机器人自动维护,更新及时
  3. 日历标题包含放假、补班的天数信息
  4. 日历标题包含放假、补班等关键字,方便脚本开发。例如使用iPhone快捷指令应用编写工作日闹钟
  5. 每个补班日程自动设置上班提醒,默认时间为09:00~18:00、提前一个小时提醒
  6. 支持个性化定制补班日程的开始、结束时间和提醒时间(例如提前一天提醒)
  7. 没有广告!!!

放假日程

日程表 详细信息

补班日程

日程表 详细信息

定制补班日程

支持指定补班日程的开始、结束时间和提醒时间,格式为:订阅地址?token=API密钥&compStart=上班时分秒&compEnd=下班时分秒&compAlarm=在开始时间点提前多少分钟提醒

例如补班时间为早上8.30到晚上8.30,提前15分钟提醒,则订阅地址为 https://www.shuyz.com/githubfiles/china-holiday-calender/master/holidayCal.ics?token=cb429c2a-81a6-4c26-8f35-4f4bf0c84b2c&compStart=083000&compEnd=203000&compAlarm=15

注意:

  • 时间格式为24小时制的6位数字,个位补0,例如8点零5分表示为080500
  • 最大可提前9999分钟提醒,所以提前几天也是可以的。例如compStart0800,设定前一天早上8点提醒,则compAlarm提前24小时x60=1440; 设定前一天晚上8点提醒,则compAlarm提前12小时x60=720
  • 补班日程可设置为全天事件,指定compStart=*并且compEnd=*即可
  • 由于订阅功能需消耗服务器资源进行计算,如果影响到服务器的正常使用,则定制功能可能随时取消
定制补班日程表 详细信息

快捷指令应用

节假日查询 节假日闹钟
https://www.shuyz.com/shortcuts/holiday-query https://www.shuyz.com/shortcuts/holiday-alarm

API 字段说明

节假日对象:

字段名 类型 描述
Name 字符串 节假日的名称。
StartDate 字符串 节假日的开始日期,格式为"YYYY-MM-DD"。
EndDate 字符串 节假日的结束日期,格式为"YYYY-MM-DD"。
Duration 整数 节假日的持续天数。
CompDays 字符串数组 补班日期的数组,格式为"YYYY-MM-DD"。
URL 字符串 放假通知的URL链接。
Memo 字符串 放假通知。

china-holiday-calender's People

Contributors

lanceliao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

china-holiday-calender's Issues

验证失败,添加不了

手机端不行,系统iOS 15.4;Mac端可以。

通过Mac端添加的,手机端没有正常显示。

地址在Safari浏览器中不能正常打开。

ics 文件

您好,请问下 ics 文件是一键导出的吗?能否分享下,感谢

提醒时间问题

请问, 这个提醒一小时前, 订阅成功后显示为 无 , 未显示 一小时前

Outlook订阅全天日历,显示错误

在Outlook中订阅日历时,使用订阅参数 compStart=*&compEnd=* 出现的日程为当天00:00
image


可能需要如下格式:

DTSTART;VALUE=DATE:20220129
DTEND;VALUE=DATE:20220129

能否支持仅订阅补班日历

现在很多日历客户端都提供了**节假日订阅,IPhone也新增了这一项,能不能提供参数配置订阅集合 [节假日|补班]

你好,发现2023年春节假期被归到2022年里了,2022年的元旦假期被归到2023年了

问题ics文件:
https://raw.githubusercontent.com/lanceliao/china-holiday-calender/master/holidayCal.ics

  • 2022.1.21 ~ 2022.1.27,实际应为2023.1.21 ~ 2023.1.27,即2023年春节假期(但2023年已有对应日程)
  • 2022.1.1 ~ 2022.1.3,元旦假期缺失
  • 2023.1.1、2023.1.2,日程重复了2遍,重复项实为2022年的元旦假期

政府公告:
http://www.gov.cn/zhengce/content/2022-12/08/content_5730844.htm

能标注哪天是节日吗?

例如 清明节
现在只显示 清明放假第1天 清明放假第2天 清明放假第3天
看不出哪天是清明节🤔
能具体标注哪天是节日吗?

2023updates

希望可以新增2023的节假日~感谢up主

使用python的ics模块解析时报ValueError: A VALARM must have at least one DESCRIPTION

报错信息:
ValueError: A VALARM must have at least one DESCRIPTION

gpt解释:
VALARM是iCalendar规范的一部分,用于定义一个闹钟组件。根据规范,VALARM必须至少包含一个DESCRIPTION属性。

如果你在解析.ics文件时遇到了ValueError: A VALARM must have at least one DESCRIPTION这个错误,那可能是因为你的.ics文件中的VALARM组件没有包含DESCRIPTION属性。

需要一个只有上班没有放假事件的年度离线版本

能开源制作方法也很好。

Android原生也有法定工作日闹钟的需求,目前可以稳定通过日历无限通知实现,不用扯到闹钟上。

这样设置成有事项就提醒,没事项就没提醒了,所以不需要标注放假。

同时可能有自行请假等情况,需要删除特定日期的事件实现自定义,所以需要不会联网更新。

以前都是我设置成全年上班,再手动删除周末和节假日的,所以希望能提供个自动生成的方法。

定制显示信息

大佬~自从有一天被工作日闹钟吵醒就来搜到了你这个日历
因为每个人的时间或者是其它一些不同的地方想要定制不知道能不能帮忙一起实现一下😂
我现在是基于你的又做了一次字符串替换

比如我的工作时间其实就不是9-18

非常感谢大佬的日历!

24节气

作者您好,能不能把24节气添加上去呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.