wucpeng-tools
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,1 +0,2 @@ | ||
module.exports.holiday = require('./holiday.js'); | ||
module.exports.holiday = require('./holiday.js'); | ||
module.exports.calendar = require('./calendar.js'); |
{ | ||
"name": "wucpeng-tools", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "time date holiday lunar", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,4 +11,38 @@ ## wucpeng-tools ## | ||
## Feature ## | ||
## Feature holiday## | ||
holiday 判断假期 需要每年添加 供当前公司场景使用 | ||
const tools = require('wucpeng-tools'); | ||
const holiday = tools.holiday; | ||
let time = new Date(); | ||
console.log(holiday.isHolidayDate(now)); | ||
## Feature calendar ## | ||
const tools = require('wucpeng-tools'); | ||
const calendar = tools.calendar; | ||
let time = new Date(); | ||
console.log(calendar.solar2lunarDate(1986,3,7)); | ||
{ | ||
lYear: 1986, | ||
lMonth: 1, | ||
lDay: 27, | ||
Animal: '虎', | ||
IMonthCn: '正月', | ||
IDayCn: '廿七', | ||
cYear: 1986, | ||
cMonth: 3, | ||
cDay: 7, | ||
gzYear: '丙寅', | ||
gzMonth: '辛卯', | ||
gzDay: '庚戌', | ||
isToday: false, | ||
isLeap: false, | ||
nWeek: 5, | ||
ncWeek: '星期五', | ||
isTerm: false, | ||
Term: null, | ||
astro: '双鱼座' | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30875
5
623
47
1