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