Skip to main content

format_relative

Function format_relative 

Source
pub fn format_relative(now: i64, then: i64, en: bool) -> String
Expand description

a relative time for people: “vor 5 min” / “5 min ago”, “in 2 h” (now and then in seconds)