pub fn format_duration(pattern: &str, seconds: f64) -> String
Write a number of seconds with a checked pattern.