MCPcopy Create free account
hub / github.com/Nutlope/notesGPT / formatTimestamp

Function formatTimestamp

lib/utils.ts:21–35  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

19}
20
21export function formatTimestamp(timestamp: number): string {
22 const date = new Date(timestamp);
23 const dateString = date.toLocaleDateString('en-US', {
24 year: 'numeric',
25 month: 'long',
26 day: 'numeric',
27 });
28 const timeString = date.toLocaleTimeString('en-US', {
29 hour: 'numeric',
30 minute: '2-digit',
31 hour12: true,
32 });
33
34 return `${dateString} at ${timeString}`;
35}

Callers 1

RecordingDesktopFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected