Skip to main content

relative_time

Function relative_time 

Source
pub fn relative_time(now: u64, then: u64) -> String
Expand description

How long ago then was, seen from now, as a feed shows it: now, 5m, 3h, 2d, 6w, 1y. A time in the future (a clock that runs ahead) reads as now.