MCPcopy Create free account
hub / github.com/TQZHR/grok2api / formatTime

Function formatTime

app/static/cache/cache.js:213–217  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

211}
212
213function formatTime(ms) {
214 if (!ms) return '';
215 const dt = new Date(ms);
216 return dt.toLocaleString('zh-CN', { hour12: false });
217}
218
219function calcPercent(processed, total) {
220 return total ? Math.floor((processed / total) * 100) : 0;

Callers 3

loadStatsFunction · 0.85
renderAccountTableFunction · 0.85
renderLocalCacheListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected