MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / formatTimestamp

Function formatTimestamp

cli/src/utils/helpers.ts:14–22  ·  view source on GitHub ↗
(date = new Date())

Source from the content-addressed store, hash-verified

12}
13
14export function formatTimestamp(date = new Date()): string {
15 if (timestampFormatter) {
16 return timestampFormatter.format(date)
17 }
18 return date.toLocaleTimeString([], {
19 hour: '2-digit',
20 minute: '2-digit',
21 })
22}
23
24export function formatQueuedPreview(
25 messages: Array<{ content: string }>,

Callers 6

getUserMessageFunction · 0.90
getSystemMessageFunction · 0.90
createModeDividerMessageFunction · 0.90
createAiMessageShellFunction · 0.90
createErrorMessageFunction · 0.90
buildBashHistoryMessagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected