Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
fromNow
Method · 0.80
locale
Method · 0.65
add
Method · 0.65
Tested by
no test coverage detected