Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Linen-dev/linen.dev
/ timeAgo
Function
timeAgo
packages/utilities/src/date.ts:43–47 ·
view source on GitHub ↗
(date: string | number)
Source
from the content-addressed store, hash-verified
41
}
42
43
export
function
timeAgo(date: string | number) {
44
return
formatDistanceToNow(typeof date ===
'number'
? date :
new
Date(date), {
45
addSuffix: true,
46
});
47
}
Callers
1
date.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected