MCPcopy
hub / github.com/CodebuffAI/codebuff / get

Function get

common/src/util/zoned-time.ts:20–24  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

18 }).formatToParts(date)
19
20 const get = (type: string) => {
21 const value = parts.find((part) => part.type === type)?.value
22 if (!value) throw new Error(`Missing ${type} in ${timeZone} date parts`)
23 return Number(value)
24 }
25
26 return {
27 year: get('year'),

Callers 1

getZonedPartsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected