Function timecode
pub fn timecode(total_secs: u64) -> StringExpand description
The timecode style, for media positions and lengths: m:ss under an
hour, h:mm:ss from one hour.
use tilo_ui::format::timecode;
assert_eq!(timecode(0), "0:00");
assert_eq!(timecode(9), "0:09");
assert_eq!(timecode(75), "1:15");
assert_eq!(timecode(3661), "1:01:01");