Skip to main content

$(timeAgo)

$(timeAgo [timestamp])

Displays a timestamp as coarse relative time: "just now", "5 minutes ago", "in 2 hours". The timestamp can be an ISO date string or epoch milliseconds — usually it comes from a variable. In overlays the value updates every second.

An invalid timestamp displays nothing.

Examples

$(timeAgo {{streamInfo.startedAt}})

Will display e.g. "2 hours ago"

Last follower: $(timeAgo {{last_follow_time}})

Will display e.g. "Last follower: 5 minutes ago"