MCPcopy
hub / github.com/iamkun/dayjs / humanize

Method humanize

src/plugin/duration/index.js:232–237  ·  view source on GitHub ↗
(withSuffix)

Source from the content-addressed store, hash-verified

230 }
231
232 humanize(withSuffix) {
233 return $d()
234 .add(this.$ms, 'ms')
235 .locale(this.$l)
236 .fromNow(!withSuffix)
237 }
238
239 valueOf() {
240 return this.asMilliseconds()

Callers

nothing calls this directly

Calls 3

fromNowMethod · 0.80
localeMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected