pub fn tz_by_name<S: AsRef<[u8]>>(s: S) -> Option<TimeZoneRef<'static>>
Expand description
Find a time zone by name, e.g. "Europe/Berlin"
(case-insensitive)
ยงExample
assert_eq!(
tzdb::time_zone::europe::BERLIN,
tzdb::tz_by_name("Europe/Berlin").unwrap(),
);