Add functions, getTime function. This is for logging
This commit is contained in:
parent
91bb98b0b9
commit
b866641fac
1 changed files with 7 additions and 0 deletions
7
functions/getTime.js
Normal file
7
functions/getTime.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports = () => {
|
||||
const date = new Date();
|
||||
const timeDate = date.toLocaleDateString();
|
||||
const time = date.toLocaleTimeString();
|
||||
|
||||
return ` ${time} | ${timeDate} `;
|
||||
};
|
Reference in a new issue