error[E0599]: no method named `hour` found for type `chrono::naive::datetime::NaiveDateTime` in the current scope
--> benches/my_benchmark.rs:55:32
|
55 | let minutes = (date.hour() * 60 + date.minute()) as u16;
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
1 | use chrono::Timelike;
Why?