MCPcopy
hub / github.com/bombshell-dev/clack / toDate

Function toDate

packages/core/src/prompts/date.ts:76–79  ·  view source on GitHub ↗
(parts: DateParts)

Source from the content-addressed store, hash-verified

74}
75
76function toDate(parts: DateParts): Date | undefined {
77 const p = validParts(parts);
78 return p ? new Date(Date.UTC(p.year, p.month - 1, p.day)) : undefined;
79}
80
81function segmentBounds(
82 type: 'year' | 'month' | 'day',

Callers 2

#refreshMethod · 0.85
#onFinalizeMethod · 0.85

Calls 1

validPartsFunction · 0.85

Tested by

no test coverage detected