offset with libs ?

This commit is contained in:
2019-06-11 09:51:15 +10:00
parent d3da5fe9eb
commit 16e9116308

View File

@@ -5,6 +5,7 @@ module.exports = {
name: "Nine to Five",
init: (dclient) => {
client = dclient
moment().utcOffset(0)
setInterval(on15Update, 900000)
function on15Update() {
var currentUpdate = Math.round((moment().day() * 24 * 60 + (moment().hour() * 60) + moment().minute()) / 15)
@@ -15,6 +16,6 @@ module.exports = {
}
on15Update()
console.log(moment().format())
}
}