Skip to main content

hours_to_label

Function hours_to_label 

Source
pub fn hours_to_label(hours: u32) -> String
Expand description

Convert hours to a human-readable label (e.g. 24 → “24h”, 168 → “7d”).