summaryrefslogtreecommitdiff
path: root/status-time.js
blob: 6c469c1296d3861f8b417d162d16f4e6d700f842 (plain)
1
2
3
4
5
6
let updateTime = () => {
    document.getElementById("statusbar-time").innerText = new Date().getHours() + ":" + (new Date().getMinutes() > 9 ? new Date().getMinutes() : "0" + new Date().getMinutes());
}

setInterval(updateTime, 1000)
updateTime()