This commit is contained in:
kaj van schalkwijk
2023-02-15 19:54:49 +01:00
parent 0403dee3ed
commit bd6b6407e1
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -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
the programm is not case sensitive so 7H5m or 7h5M will return the same as 7h5m
+1 -2
View File
@@ -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,
+4 -4
View File
@@ -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"
}