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

Function isoTimeAgo

dashboard/shell/src/sdk.jsx:115–118  ·  view source on GitHub ↗
(iso)

Source from the content-addressed store, hash-verified

113
114/** Relative time from an ISO string; future timestamps read "unknown". */
115export function isoTimeAgo(iso) {
116 const delta = (Date.now() - new Date(iso).getTime()) / 1000;
117 return delta < 0 ? "unknown" : relativeTime(delta);
118}
119
120/* Minimal stand-ins for the Hermes design-system components the plugin
121 * bundles render. Styling lives in shell/src/styles.css (.ts-* classes). */

Callers 1

fmtTimeFunction · 0.85

Calls 1

relativeTimeFunction · 0.85

Tested by

no test coverage detected