tzdb_data

Function find_raw

Source
pub const fn find_raw(s: &[u8]) -> Option<&'static [u8]>
Expand description

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

ยงExample

assert_eq!(
    tzdb_data::time_zone::europe::RAW_BERLIN,
    tzdb_data::find_raw(b"Europe/Berlin").unwrap(),
);