You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
shaojing a7b3affebf 博物馆调整到本平台预约 2 years ago
..
.editorconfig 博物馆调整到本平台预约 2 years ago
.travis.yml 博物馆调整到本平台预约 2 years ago
LICENSE 博物馆调整到本平台预约 2 years ago
README.md 博物馆调整到本平台预约 2 years ago
index.d.ts 博物馆调整到本平台预约 2 years ago
index.js 博物馆调整到本平台预约 2 years ago
package.json 博物馆调整到本平台预约 2 years ago
test.js 博物馆调整到本平台预约 2 years ago

README.md

chinese-workday

今天要上班吗?

Build Status

Install

$ npm install chinese-workday

Usage

// const { isWorkday, isHoliday, getFestival } = require('chinese-workday');
const ww = require('chinese-workday');
const isWorkday = ww.isWorkday;
const isHoliday = ww.isHoliday;
const getFestival = ww.getFestival;
const isAddtionalWorkday = ww.isAddtionalWorkday;

isWorkday('2022-10-01')
// => false
isHoliday('2022-10-01')
// => true
isAddtionalWorkday('2022-01-29')
// => true
getFestival('2022-10-01')
// => 国庆节

Note: Since 2018