Crate zone_detect
source ·Expand description
Example:
let database = zone_detect::Database::open("data/timezone21.bin")
.expect("failed to open database");
let s = database.simple_lookup(zone_detect::Location {
latitude: 35.0715,
longitude: -82.5216,
}).unwrap();
assert_eq!(s, "America/New_York");
Structs§
- Zone database.
- Latitude and longitude.
- Zone retrieved from the database.
- Matching zones and safezone from a database lookup.
- Zone retrieved from the database, along with the type of result.
Enums§
- Database type.