MCPcopy Create free account
hub / github.com/MiroMindAI/MiroThinker / formatTimestamp

Function formatTimestamp

apps/visualize-trace/static/js/script.js:86–94  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

84}
85
86function formatTimestamp(timestamp) {
87 if (!timestamp) return '';
88 try {
89 const date = new Date(timestamp);
90 return date.toLocaleString('zh-CN');
91 } catch (e) {
92 return timestamp;
93 }
94}
95
96function truncateText(text, maxLength = 100) {
97 if (!text) return '';

Callers 3

createStepHTMLFunction · 0.85
createBrowserStepHTMLFunction · 0.85
showFullMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected