New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-excel-date-convert

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-excel-date-convert - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

js-excel-date-convert.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc