MCPcopy Create free account
hub / github.com/tiann/hapi / formatDatePrefix

Function formatDatePrefix

cli/src/runner/worktree.ts:60–64  ·  view source on GitHub ↗
(date: Date = new Date())

Source from the content-addressed store, hash-verified

58}
59
60function formatDatePrefix(date: Date = new Date()): string {
61 const month = String(date.getMonth() + 1).padStart(2, '0');
62 const day = String(date.getDate()).padStart(2, '0');
63 return `${month}${day}`;
64}
65
66function normalizeNameHint(nameHint?: string): string | null {
67 if (!nameHint) {

Callers 1

makeDefaultBaseNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected