2903710916 / chinese-workday

**工作日,用于查询某天是否是工作日、节假日、是否要补班

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chinese-workday

今天要上班吗?

Build Status

Install

$ npm install chinese-workday

Usage

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

isWorkday('2018-10-01')
// => false
isHoliday('2018-10-01')
// => true
getFesival('2018-10-01')
// => 国庆节

Note: Since 2018

About

**工作日,用于查询某天是否是工作日、节假日、是否要补班

License:MIT License


Languages

Language:JavaScript 100.0%