MCPcopy Create free account
hub / github.com/MemeTray/MemeTray / updateClock

Function updateClock

tools/common/taskbarPreview.js:76–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 function updateClock() {
77 const d = new Date()
78 const hh = String(d.getHours()).padStart(2, '0')
79 const mm = String(d.getMinutes()).padStart(2, '0')
80 const ss = String(d.getSeconds()).padStart(2, '0')
81
82 if (clockTime) clockTime.textContent = `${hh}:${mm}:${ss}`
83 if (clockDate) clockDate.textContent = formatDate(d)
84 }
85
86 clockInterval = setInterval(updateClock, 1000)
87 updateClock()

Callers 1

initTaskbarFunction · 0.85

Calls 1

formatDateFunction · 0.85

Tested by

no test coverage detected