Add functions, getTime function. This is for logging

This commit is contained in:
IDeletedSystem64 2022-07-02 21:07:43 -05:00
parent 91bb98b0b9
commit b866641fac

7
functions/getTime.js Normal file
View file

@ -0,0 +1,7 @@
module.exports = () => {
const date = new Date();
const timeDate = date.toLocaleDateString();
const time = date.toLocaleTimeString();
return ` ${time} | ${timeDate} `;
};