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

Function formatTime

src/webapp/fns/format-date.ts:11–15  ·  view source on GitHub ↗
(value: Date | string | undefined)

Source from the content-addressed store, hash-verified

9}
10
11export function formatTime(value: Date | string | undefined): string {
12 if (!value) return "";
13
14 return format(new Date(value), "pp", { locale: enUS });
15}
16
17const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
18

Callers 5

ComponentFunction · 0.90
SessionsGridDisplayFunction · 0.90
SessionHeaderCardFunction · 0.90
EventStepFunction · 0.90
FirstEventStepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected