Function tzdb::raw_tz_by_name

source ·
pub fn raw_tz_by_name<S>(s: S) -> Option<&'static [u8]>where
    S: AsRef<[u8]>,
Expand description

Find the raw, unparsed time zone data by name, e.g. "Europe/Berlin" (case-insensitive)

Example

assert_eq!(
    tzdb::time_zone::europe::RAW_BERLIN,
    tzdb::raw_tz_by_name("Europe/Berlin").unwrap(),
);