MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / formatTimeForInput

Function formatTimeForInput

src/utils/timeblockPrefillUtils.ts:14–18  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

12}
13
14function formatTimeForInput(date: Date): string {
15 const hours = String(date.getHours()).padStart(2, "0");
16 const minutes = String(date.getMinutes()).padStart(2, "0");
17 return `${hours}:${minutes}`;
18}
19
20export function buildTimeblockPrefillForTask(
21 task: TaskInfo,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected