13 lines
312 B
JavaScript
Raw Normal View History

2020-09-14 12:11:37 +01:00
module.exports = {
time: () => {
try {
2020-09-14 12:27:18 +01:00
var time = new Date();
currentTime = ("0" + time.getHours()).slice(-2) + ":" +
("0" + time.getMinutes()).slice(-2)
return currentTime
2020-09-14 12:11:37 +01:00
} catch (error) {
console.log(error)
}
}
}