js-excel-date-convert
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -8,3 +8,3 @@ | ||
*/ | ||
export function fromExcelDate (excelDate, date1904) { | ||
function fromExcelDate (excelDate, date1904) { | ||
const daysIn4Years = 1461; | ||
@@ -25,3 +25,3 @@ const daysIn70years = Math.round(25567.5 + 1); // +1 because of the leap-year bug | ||
*/ | ||
export function toExcelDate (date, date1904) { | ||
function toExcelDate (date, date1904) { | ||
// see https://bettersolutions.com/excel/dates-times/1904-date-system.htm | ||
@@ -36,1 +36,6 @@ if (isNaN(date)) return null; | ||
} | ||
module.exports = { | ||
fromExcelDate, | ||
toExcelDate | ||
}; |
{ | ||
"name": "js-excel-date-convert", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Convert dates between JS and Excel formats", | ||
@@ -5,0 +5,0 @@ "main": "js-excel-date-convert.js", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
7485
49
1