Appearance
web / utils/time / timeAgo
Function: timeAgo()
timeAgo(
isoDate):string
Defined in: utils/time.ts:10
Converts an ISO date string into a human-readable "time ago" format. Examples: "2006-12-12T18:30:46.152432" -> "16 years" 6 months ago -> "6 months"
Parameters
isoDate
string
The ISO date string to convert.
Returns
string
A string representing the time difference in years or months.