Package Exports
- pull-workday
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-workday) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
说明
- 获取指定间隔的工作日日期信息
- 非工作日仅周六日,其它节日未考虑
Install
npm install --save pull-workday
Use
// import pull-workday
import pullWorkday from 'pull-workday'
// 获取第七个工作日的日期信息
let startDate = new Date();
console.log(startDate);
// Thu Mar 16 2017 21:12:45 GMT+0800 (中国标准时间)
let endDate = pullWorkday(startDate, 7);
console.log(endDate);
// Fri Mar 24 2017 21:12:45 GMT+0800 (中国标准时间)