TimeAgoExtension extension

Extension to provide a unified timeAgo string from either a DateTime or String date input.

on

Properties

toTimeAgo String?

Available on Object?, provided by the TimeAgoExtension extension

Converts DateTime or String to a human-readable relative time like '2 hours ago'. Returns null if the input is null or not a valid type.
no setter