Skip to main content

format_duration

Function format_duration 

Source
pub fn format_duration(started_at: DateTime<Utc>) -> String
Expand description

Format a duration from a start time as a human-readable string.

Examples: “5s”, “2m 30s”, “1h 5m”

This is the canonical duration formatting used by both GUI and TUI.