![]() |
2 months ago | |
---|---|---|
.github | 2 months ago | |
docs | 2 months ago | |
scripts | 8 months ago | |
src | 2 months ago | |
test | 2 months ago | |
.gitignore | 8 months ago | |
CHANGELOG.md | 2 months ago | |
LICENSE | 1 year ago | |
README.en.md | 8 months ago | |
README.md | 8 months ago | |
debug_lunar.js | 2 months ago | |
jest.config.ts | 8 months ago | |
package-lock.json | 2 months ago | |
package.json | 2 months ago | |
tsconfig.json | 1 year ago | |
vite.config.ts | 1 year ago |
This project provides a series of functions for querying Chinese holidays, adjusted working days, working days, 24 solar terms, and converting between lunar and solar calendars. Additionally, it supports ics file subscription for holidays, which can be subscribed to by Google Calendar, Apple Calendar, Microsoft Outlook, and other clients.
To check out docs, visit chinese-days.yaavi.me.
The holiday information will be updated according to the announcements from the State Council.
The subscribed calendar includes holidays and adjusted working days for the past three years (2023-2025).
Subscription URL: https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.ics (default language is Chinese)
For English: https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.en.ics
A JSON
file of Chinese holidays is provided and can be directly referenced through this link: chinese-days.json.
For example, in Java
, you can refer to Warnier-zhang/java-chinese-days, which is only for querying Chinese holidays, in-lieu days, and regular workdays.
Python
version of the LKI/chinese-calendar project.