Skip to main content

format_relative

Function format_relative 

Source
pub fn format_relative(diff_secs: i64) -> String
Expand description

Format a positive-is-past difference in seconds as a natural English phrase. Positive values mean the target is in the past ("yesterday"), negative values mean the future ("tomorrow"), zero means right now.