MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / formatChartTime

Function formatChartTime

apps/web/src/lib/widget-helpers.ts:103–106  ·  view source on GitHub ↗
(time: string)

Source from the content-addressed store, hash-verified

101// --- Time formatting ---
102
103export function formatChartTime(time: string): string {
104 const date = new Date(time)
105 return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false })
106}
107
108export function formatChartDateTime(time: string): string {
109 return formatDateTime(time, {

Callers 2

LineChartWidgetFunction · 0.90
DiskIoWidgetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected