MCPcopy
hub / github.com/zgsm-ai/costrict / get

Function get

apps/web-roo-code/src/lib/blog/time.ts:24–24  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

22
23 const parts = formatter.formatToParts(new Date())
24 const get = (type: string) => parts.find((p) => p.type === type)?.value ?? ""
25
26 const date = `${get("year")}-${get("month")}-${get("day")}`
27 const minutes = parseInt(get("hour"), 10) * 60 + parseInt(get("minute"), 10)

Callers 2

getNowPtFunction · 0.70
store.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected