MCPcopy Index your code
hub / github.com/Necriso/ScriptableWidgets / getTime

Function getTime

openWebIf.js:27–30  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

25}
26
27function getTime(timestamp) {
28 let ts = new Date(timestamp * 1000)
29 return ts.toLocaleTimeString("de-DE", {timeZone: 'Europe/Berlin', hour: '2-digit', minute:'2-digit'})
30}
31
32async function createWidget(channel) {
33 let widget = new ListWidget()

Callers 1

createWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected