MCPcopy Create free account
hub / github.com/basecamp/omarchy / nextClockFormat

Function nextClockFormat

shell/plugins/panels/clock/Model.js:64–68  ·  view source on GitHub ↗
(ring, current)

Source from the content-addressed store, hash-verified

62// Next entry after `current`. An unknown current format (a hand-written one
63// that is not in the ring) starts the walk at the top.
64function nextClockFormat(ring, current) {
65 if (!ring || ring.length === 0) return ""
66 var index = ring.indexOf(String(current === undefined || current === null ? "" : current))
67 return ring[(index + 1) % ring.length]
68}
69
70// Two-digit ISO week, substituted into a format's 'ww' token before Qt
71// formats it -- Qt has no ISO week specifier of its own.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected