toShortRelativeTime

fun Instant.toShortRelativeTime(now: Instant = Clock.System.now()): String(source)

Returns a concise relative time string (e.g. for feed timestamps). Uses abbreviated units: "s", "m", "h", "d", "w", "mo", "y". Example: someInstant.toShortRelativeTime() → "3h"