fn slot_distance_pretty(slot_span: Slot, slot_duration: Duration) -> String {
    if slot_duration == Duration::from_secs(0) {
        return String::from("Unknown");
    }

    let secs = (slot_duration * slot_span.as_u64() as u32).as_secs();
    seconds_pretty(secs as f64)
}
/// Returns a nicely formatted string describing the `slot_span` in terms of weeks, days, hours
/// and/or minutes.
Returns a nicely formatted string describing the `slot_span` in terms of weeks, days, hours
and/or minutes.
Returns a nicely formatted string describing the ` slot_span ` in terms of weeks days hours and / or minutes .
fn slot_distance_pretty(slot_span: Slot, slot_duration: Duration) -> String {
    if slot_duration == Duration::from_secs(0) {
        return String::from("Unknown");
    }
    let secs = (slot_duration * slot_span.as_u64() as u32).as_secs();
    seconds_pretty(secs as f64)
}
fn slot_distance_pretty ( slot_span : Slot , slot_duration : Duration ) -> String { if slot_duration == Duration :: from_secs ( 0 ) { return String :: from ( " " ) ; } let secs = ( slot_duration * slot_span . as_u64 ( ) as u32 ) . as_secs ( ) ; seconds_pretty ( secs as f64 ) }
Returns a nicely formatted string describing the `slot_span` in terms of weeks, days, hours
and/or minutes.
Returns a nicely formatted string describing the ` slot_span ` in terms of weeks days hours and / or minutes .
slot_span
Slot
slot_duration
Duration