MCPcopy Create free account
hub / github.com/cortexkit/magic-context / formatTimestamp

Function formatTimestamp

packages/cli/src/lib/logs-pi.ts:15–26  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

13}
14
15function formatTimestamp(date: Date): string {
16 const pad = (value: number) => String(value).padStart(2, "0");
17 return [
18 String(date.getFullYear()),
19 pad(date.getMonth() + 1),
20 pad(date.getDate()),
21 "-",
22 pad(date.getHours()),
23 pad(date.getMinutes()),
24 pad(date.getSeconds()),
25 ].join("");
26}
27
28export interface BundledIssueReport {
29 path: string;

Callers 1

bundleIssueReportFunction · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected