Add functions, getTime function. This is for logging
This commit is contained in:
parent
91bb98b0b9
commit
b866641fac
|
@ -0,0 +1,7 @@
|
||||||
|
module.exports = () => {
|
||||||
|
const date = new Date();
|
||||||
|
const timeDate = date.toLocaleDateString();
|
||||||
|
const time = date.toLocaleTimeString();
|
||||||
|
|
||||||
|
return ` ${time} | ${timeDate} `;
|
||||||
|
};
|
Reference in New Issue