Expand description
A tool to easily work with timezone lookups.
§Examples
use rtzlib::NedTimezone;
use rtzlib::CanPerformGeoLookup;
// Query a time zone for a given `(lng,lat)`.
assert_eq!(
NedTimezone::lookup(-121., 46.)[0]
.identifier
.as_ref()
.unwrap(),
"America/Los_Angeles"
);
Re-exports§
pub use crate::geo::shared::CanPerformGeoLookup;
Modules§
- The
geo
module contains the geo lookup functionality. - Shared functionality for the
rtz
crate.