Added 0 formatting; closes #14 #16
@ -21,7 +21,7 @@ impl Time {
|
|||||||
time /= 60;
|
time /= 60;
|
||||||
let minutes = time;
|
let minutes = time;
|
||||||
|
|
||||||
format!("{minutes}:{seconds}:{milliseconds}")
|
format!("{minutes:02}:{seconds:02}:{milliseconds:02}")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_milliseconds(mut time: u32) -> Self {
|
pub fn from_milliseconds(mut time: u32) -> Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user