We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
用的时候记得归零时分秒
Sorry, something went wrong.
如果是 89 ~ 91 年的数据 需要处理一下夏令时
var _getTime = function(date) { const RE = /夏令/; let timestamp = date.getTime(); if (RE.test(date.toString())) { timestamp += 1000 * 60 * 60; } return timestamp; }; /** * 农历转阳历 * lunarToSolar({}),或者lunarToSolar(year, month, day, leap) */ _chineseLunar.lunarToSolar = function(year, month, day, leap) { // 省略…… var time = _getTime(solar) + (day - 1) * 24 * 60 * 60 * 1000; return new Date(time); }; //计算公历两个日期之差 var _solarDiff = function(left, right, interval) { var span = _getTime(left) - _getTime(right); //相差毫秒 // 省略…… };
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: