Simplify the now string

This commit is contained in:
Campbell Alden 2024-12-23 16:59:09 +09:00
parent b6d1c0ea0c
commit 9087e69c79
3 changed files with 4 additions and 3 deletions

View file

@ -53,7 +53,8 @@ fn main() -> Result<()> {
if let Some(remaining) = first {
let now = Local::now();
println!("Ended with unclosed span... assuming ending now: {}", now.time());
let now_str = now.format("%-I:%M %p");
println!("Ended with unclosed span... assuming ending now: {}", now_str);
total_minutes += (now - remaining).num_minutes();
}