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
1 changed files with 7 additions and 0 deletions

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} `;
};