duration_to_str

Function duration_to_str 

Source
pub fn duration_to_str(initial_time: DateTime<Local>) -> String
Expand description

Converts timespec to nice readable relative time string

§Arguments

  • initial_time - The initial time to calculate the relative time from

§Returns

A string representing the relative time from the initial time