Serverless handler stub created

This commit is contained in:
Senad Uka
2019-03-07 06:24:08 +01:00
parent 4726031c8e
commit 3f8e6438b2
17 changed files with 1575 additions and 43 deletions

View File

@@ -0,0 +1,13 @@
function convertToDate(date) {
const [dan, mjesec, godina] = date
.split(". u ")[0]
.split(".")
.map(el => Number(el));
const [sati, minute] = date
.split(". u ")[1]
.split(":")
.map(el => Number(el));
return new Date(godina, mjesec, dan, sati, minute);
}
module.exports = convertToDate;