Skip to main content

timeuntil

Function timeuntil 

Source
pub fn timeuntil(
    d: DateTime<Utc>,
    now: Option<DateTime<Utc>>,
    depth: usize,
) -> String
Expand description

timeuntil(d, now=None, depth=2) — duration from now to d.

Inverse of timesince for future-pointing targets. now defaults to Utc::now(). Returns "0 minutes" when d is in the past or the delta is below one minute.