MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / formatTime

Function formatTime

packages/app-core/src/lib/template-render.ts:57–59  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

55}
56
57function formatTime(date: Date): string {
58 return `${pad2(date.getHours())}:${pad2(date.getMinutes())}`
59}
60
61// Longest tokens must come first in the alternation so `MMMM` wins over `MM`,
62// `MM` over `M`, etc. `[...]` escapes emit their contents literally.

Callers 1

substituteTokensFunction · 0.85

Calls 1

pad2Function · 0.70

Tested by

no test coverage detected