You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im trying to run an example from tz-db crate that was made for this crate.
use tz::{DateTime,TimeZone};use tzdb::{time_zone, tz_by_name};// access by identifierDateTime::now(time_zone::europe::KIEV);// access by nameDateTime::now(tz_by_name("Europe/Berlin").unwrap());// names are case insensitiveDateTime::now(tz_by_name("ArCtIc/LongYeArByEn").unwrap())
but when im trying to run this example (with main function ofc)
error[E0432]: unresolved imports `tz::DateTime`, `tz::TimeZone`
--> timezones/src/main.rs:4:10
|
4 | use tz::{DateTime, TimeZone};| ^^^^^^^^ ^^^^^^^^ no `TimeZone`in the root
||| no `DateTime`in the root
For more information about this error, try `rustc --explain E0432`.
error: could not compile `timezones` due to previous error
hello.
im trying to run an example from
tz-db
crate that was made for this crate.but when im trying to run this example (with main function ofc)
my cargo toml has
rustc and cargo versions are
maybe am i missing some
feature
from this crate ?what am i missing, because i dont feel that this is wrong.
thanks in advance.
The text was updated successfully, but these errors were encountered: