From b866641fac662e115086735868af54b7b0f8e21b Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Sat, 2 Jul 2022 21:07:43 -0500 Subject: [PATCH] Add functions, getTime function. This is for logging --- functions/getTime.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 functions/getTime.js diff --git a/functions/getTime.js b/functions/getTime.js new file mode 100644 index 0000000..8e7a596 --- /dev/null +++ b/functions/getTime.js @@ -0,0 +1,7 @@ +module.exports = () => { + const date = new Date(); + const timeDate = date.toLocaleDateString(); + const time = date.toLocaleTimeString(); + + return ` ${time} | ${timeDate} `; +};