Simplify the now string
This commit is contained in:
parent
b6d1c0ea0c
commit
9087e69c79
3 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue