MCPcopy Index your code
hub / github.com/github/relative-time-element / format

Method format

src/duration-format-ponyfill.ts:129–133  ·  view source on GitHub ↗
(duration: Duration)

Source from the content-addressed store, hash-verified

127 }
128
129 format(duration: Duration) {
130 return this.formatToParts(duration)
131 .map(p => p.value)
132 .join('')
133 }
134}

Callers 3

relative-time.jsFile · 0.45
toLocaleStringMethod · 0.45
formatToPartsMethod · 0.45

Calls 1

formatToPartsMethod · 0.95

Tested by

no test coverage detected