Skip to content

timeAgo

timeAgo(timestamp, now): string

Defined in: useTimeAgo.ts:10

Format a “time ago” string from a timestamp and a reference now.

ParameterType
timestampnumber
nownumber

string