Skip to main content

get_timezone

Function get_timezone 

Source
pub fn get_timezone(name: &str) -> Result<TimeZone, Error>
Expand description

Resolves an IANA time zone from the bundled database.

The bundled database is intentional: it keeps time zone behavior deterministic across hosts and avoids system time zone I/O in latency-sensitive paths.

ยงErrors

Returns an error if name is not present in the bundled IANA database.