mengshukeji
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
src/function/functionImplementation.js
|
|
@ -12451,9 +12451,8 @@ const functionImplementation = { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
luckysheet_getValue(arguments); |
|
|
|
for (var i = 0; i < arguments.length-1; i++){ |
|
|
|
arguments[i] = moment.fromOADate(arguments[i]).format("l"); |
|
|
|
arguments[i] = func_methods.getCellDate(arguments[i]); |
|
|
|
if(!isdatetime(arguments[i])){ |
|
|
|
return formula.error.v; |
|
|
|
} |
|
|
@ -12486,8 +12485,9 @@ const functionImplementation = { |
|
|
|
result = (startM <= endM) ? endM - startM : endM + 12 - startM; |
|
|
|
break; |
|
|
|
case "YD":case "yd": |
|
|
|
var startM = genarate(startDate.format('MM-DD'))[2]; |
|
|
|
var endM = genarate(endDate.format('MM-DD'))[2]; |
|
|
|
const format = `${endDate.$y}-MM-DD`; |
|
|
|
var startM = genarate(startDate.format(format))[2]; |
|
|
|
var endM = genarate(endDate.format(format))[2]; |
|
|
|
|
|
|
|
result = (startM <= endM) ? endM - startM : endM + 365 - startM; |
|
|
|
break; |
|
|
|