Skip to main content

format_time

Function format_time 

Source
pub fn format_time(hour: u32, minute: u32) -> String
Expand description

Formats an hour and a minute as HH:MM.

§Arguments

  • u32 - The hour of the day, 0 through 23.

§Returns

  • String - The formatted time.