MCPcopy Create free account
hub / github.com/pollinations/pollinations / formatTime

Function formatTime

apps/chat/src/components/VirtualizedMessageList.jsx:10–17  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

8 const { onRegenerate, isGenerating } = data;
9
10 const formatTime = (timestamp) => {
11 const date = new Date(timestamp);
12 return date.toLocaleTimeString("en-US", {
13 hour: "numeric",
14 minute: "2-digit",
15 hour12: true,
16 });
17 };
18
19 const copyToClipboard = (text) => {
20 navigator.clipboard

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected