Format a Unix timestamp (milliseconds) as a relative time string.
Examples (assuming "now" is the reference): "just now" "30 sec ago" "2 min ago" "3 hrs ago" "5 days ago" "2 weeks ago" "3 months ago" "1 year ago"
OCP: replace with date-fns formatDistanceToNow by swapping this function.
formatDistanceToNow
Optional
Format a Unix timestamp (milliseconds) as a relative time string.
Examples (assuming "now" is the reference): "just now" "30 sec ago" "2 min ago" "3 hrs ago" "5 days ago" "2 weeks ago" "3 months ago" "1 year ago"
OCP: replace with date-fns
formatDistanceToNowby swapping this function.