MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / formatTimestamp

Function formatTimestamp

src/lib/utils.ts:24–35  ·  view source on GitHub ↗
(timestamp: string)

Source from the content-addressed store, hash-verified

22 * @returns Formatted date string (e.g., "Jan 15, 2024 10:30 AM")
23 */
24export function formatTimestamp(timestamp: string): string {
25 const date = new Date(timestamp);
26
27 return date.toLocaleString('en-US', {
28 month: 'short',
29 day: 'numeric',
30 year: 'numeric',
31 hour: 'numeric',
32 minute: '2-digit',
33 hour12: true,
34 });
35}
36
37/**
38 * Calculate download progress percentage

Callers 2

ConversationListItemFunction · 0.90
HfModelCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected