MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getTaskFileName

Function getTaskFileName

src/integrations/misc/export-markdown.ts:22–34  ·  view source on GitHub ↗
(dateTs: number)

Source from the content-addressed store, hash-verified

20 | ThoughtSignatureBlock
21
22export function getTaskFileName(dateTs: number): string {
23 const date = new Date(dateTs)
24 const month = date.toLocaleString("en-US", { month: "short" }).toLowerCase()
25 const day = date.getDate()
26 const year = date.getFullYear()
27 let hours = date.getHours()
28 const minutes = date.getMinutes().toString().padStart(2, "0")
29 const seconds = date.getSeconds().toString().padStart(2, "0")
30 const ampm = hours >= 12 ? "pm" : "am"
31 hours = hours % 12
32 hours = hours ? hours : 12 // the hour '0' should be '12'
33 return `roo_task_${month}-${day}-${year}_${hours}-${minutes}-${seconds}-${ampm}.md`
34}
35
36export async function downloadTask(
37 dateTs: number,

Callers 2

exportTaskWithIdMethod · 0.90
downloadTaskFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected