TimeZone
struct TimeZone
Methods
Load a timezone by name.
Load a timezone by name.
Load a timezone by name.
Reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Example
nv
use std.time.TimeZone;
let tz = TimeZone.load("America/New_York");
assert_eq tz?.name(), "America/New_York";
let tz = TimeZone.load("Asia/Shanghai");
assert_eq tz?.name(), "Asia/Shanghai";