Method lrs::time::Zone::load

Loads a time zone from a well known name.

Syntax

impl Zone {
    fn load<S>(zone: S) -> Result<Zone, Errno>
        where S: AsNoNullStr,
}

Arguments

NameDescription
zone

The name of the zone.

Remarks

For example: "Europe/Berlin", "Asia/Tokyo". The full list of name can be found on wikipedia.