|
|
|
@ -71,11 +71,11 @@ const formulaDataByDbType = (context: NcContext) => [
|
|
|
|
|
result: ['-1', '-1', '-1', '-1', '-1'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
formula: `DATETIME_DIFF(NOW(), "2023/10/14", "y")`, |
|
|
|
|
formula: `DATETIME_DIFF("2023/01/12", "2023/10/14", "y")`, |
|
|
|
|
result: ['0', '0', '0', '0', '0'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
formula: `DATETIME_DIFF("2023/10/14", NOW(), "y")`, |
|
|
|
|
formula: `DATETIME_DIFF("2023/10/14", "2023/01/12", "y")`, |
|
|
|
|
result: ['0', '0', '0', '0', '0'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -95,7 +95,7 @@ const formulaDataByDbType = (context: NcContext) => [
|
|
|
|
|
result: ['-365', '-365', '-365', '-365', '-365'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
formula: `DATETIME_DIFF("2022/10/14", NOW(), "d")`, |
|
|
|
|
formula: `DATETIME_DIFF("2022/10/14", "2023/01/12", "d")`, |
|
|
|
|
result: ['-90', '-90', '-90', '-90', '-90'], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|