From bd6b6407e1fe8a4c716646598c8d27bc72ee2cf8 Mon Sep 17 00:00:00 2001 From: kaj van schalkwijk Date: Wed, 15 Feb 2023 19:54:49 +0100 Subject: [PATCH] master --- README.md | 2 +- index.js | 3 +-- package.json | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5d3d915..ead7337 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ if your input does not does not look like dhms it is no problem as long as you u so ToSec('7h5m') retuns 25500 -the programm is not case sensitive so 7H5m returns the same as 7h5M or 7h5m \ No newline at end of file +the programm is not case sensitive so 7H5m or 7h5M will return the same as 7h5m \ No newline at end of file diff --git a/index.js b/index.js index a28b409..ebc476b 100644 --- a/index.js +++ b/index.js @@ -58,8 +58,7 @@ function ToDay(input){ let data = splitDate(input); let total = data[0] * 1 + data[1] / 24 + data[2] / 1440 + data[3] / 86400; return total; -} - +} module.exports = { ToSec, diff --git a/package.json b/package.json index c26db11..59805c7 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "time-convert", - "version": "1.0.0", - "description": "", + "name": "timestringtonumber", + "version": "1.0.2", + "description": "generetes a number from a time string", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node index.js" }, - "author": "", + "author": "kaj van schalkwijk", "license": "ISC" }