MCPcopy
hub / github.com/date-fns/date-fns / h

Function h

pkgs/core/src/_lib/format/lightFormatters/index.ts:64–66  ·  view source on GitHub ↗
(date: Date, token: string)

Source from the content-addressed store, hash-verified

62
63 // Hour [1-12]
64 h(date: Date, token: string): string {
65 return addLeadingZeros(date.getHours() % 12 || 12, token.length);
66 },
67
68 // Hour [0-23]
69 H(date: Date, token: string): string {

Callers

nothing calls this directly

Calls 1

addLeadingZerosFunction · 0.90

Tested by

no test coverage detected