Skip to main content

fmt_duration_impl

Function fmt_duration_impl 

Source
pub(crate) fn fmt_duration_impl(
    duration: Duration,
    f: &mut Formatter<'_>,
) -> Result
Expand description

Internal helper to format a duration.

This function contains the actual formatting logic to avoid duplication between FormatDuration and FormatTimeAgo.