/// Timezone enum.
#[derive(Clone, Copy, Default, core::fmt::Debug)]pubenumTimeZone{/// Default UTC.
#[default]UTC,/// Asia/Shanghai timezone.
AsiaShanghai,}implTimeZone{/// Get the offset of the timezone (in seconds)
pubfnget_offset(&self)->i32{matchself{TimeZone::UTC=>0,TimeZone::AsiaShanghai =>8*3600,}}}