pub fn format_age(elapsed: Duration) -> StringExpand description
Formats an elapsed duration as a human-readable relative time string.
- Less than 60 seconds:
"Xs ago"(e.g."30s ago") - 1 to 59 minutes:
"Xm ago"(e.g."3m ago") - 60 minutes or more:
"Xh Ym ago"(e.g."1h 15m ago")