Comparing version 1.0.4 to 1.0.5
@@ -198,3 +198,3 @@ (function (global, calculate) { | ||
let nowDay = parseInt((new Date(`${obj.year}-${obj.month}-${obj.day}`) - new Date(`'${obj.year}-1-1'`)) / (24 * 60 * 60 * 1000)) + 1 | ||
let nowDay = parseInt((new Date(`${obj.year}/${obj.month}/${obj.day}`) - new Date(`${obj.year}/1/1`)) / (24 * 60 * 60 * 1000)) + 1 | ||
@@ -201,0 +201,0 @@ let nowYear = ruleArr[0] > 0 ? obj.year-- : obj.year |
{ | ||
"name": "moon-time", | ||
"version": "1.0.4", | ||
"description": "", | ||
"version": "1.0.5", | ||
"description": "moon-time is a component that converts the solar calendar to the lunar calendar (Chinese lunar calendar), it is very simple to use。", | ||
"main": "calculate.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
# moon-time | ||
moon-time is a component that converts the solar calendar to the lunar calendar (Chinese lunar calendar), it is very simple to use。 | ||
### Install | ||
moon-time is a component that converts the solar calendar to the lunar calendar (Chinese lunar calendar), it is very simple to use。 | ||
```javascript | ||
@@ -8,0 +8,0 @@ npm install moon-time |
12017