Skip to main content

format_relative_time

Function format_relative_time 

Source
pub fn format_relative_time(timestamp: Option<i64>) -> String
Expand description

Format a timestamp as a relative time string (e.g., “2m”, “3h”, “2d”)