MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / timeAgo

Function timeAgo

dashboard/shell/src/sdk.jsx:110–112  ·  view source on GitHub ↗
(ts)

Source from the content-addressed store, hash-verified

108
109/** Relative time from a unix-seconds timestamp. */
110export function timeAgo(ts) {
111 return relativeTime(Date.now() / 1000 - Number(ts));
112}
113
114/** Relative time from an ISO string; future timestamps read "unknown". */
115export function isoTimeAgo(iso) {

Callers 3

SessionsPanelFunction · 0.90
PricingSourceCardFunction · 0.90
EngineRowFunction · 0.90

Calls 1

relativeTimeFunction · 0.85

Tested by

no test coverage detected