Skip to main content

format_break_duration

Function format_break_duration 

Source
pub fn format_break_duration(secs: u64) -> String
Expand description

Human-friendly break duration for notifications (e.g. "20 seconds", "5 minutes", "1m 30s"). Drops the seconds part when the duration is a whole-minute multiple.