MCPcopy Create free account
hub / github.com/AI-FanGe/OpenAIglasses_for_Navigation / formatTime

Function formatTime

static/main.js:154–159  ·  view source on GitHub ↗
(timestamp = Date.now())

Source from the content-addressed store, hash-verified

152 }
153
154 function formatTime(timestamp = Date.now()) {
155 const date = new Date(timestamp);
156 const hours = date.getHours().toString().padStart(2, '0');
157 const minutes = date.getMinutes().toString().padStart(2, '0');
158 return `${hours}:${minutes}`;
159 }
160
161 function addTimestamp() {
162 const container = ensureChatContainer();

Callers 1

addTimestampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected