pub fn relative_time_unit(delta_ms: f64) -> (i64, RelativeUnit)Expand description
The unit a delta (value − now, ms) shows in and its count (truncated toward zero): under a minute seconds, under an hour minutes, under a day hours, under 7 days days, under 30 days weeks, under 365 days months (of 30 days), else years (of 365 days).