libtad_models/time/timezone.rs
1use serde::Deserialize;
2
3#[derive(Debug, Deserialize)]
4/// Time zone information.
5pub struct TimeZone {
6 /// The time zone offset (from UTC) in string representation.
7 ///
8 /// Example: +11:00
9 pub offset: String,
10
11 /// Abbreviated time zone name.
12 ///
13 /// Example: LHDT
14 pub zoneabb: String,
15
16 /// Full time zone name.
17 ///
18 /// Example: Lord Howe Daylight Time
19 pub zonename: Option<String>,
20
21 /// Basic time zone offset (without DST) in seconds.
22 pub zoneoffset: i32,
23
24 /// DST component of time zone offset in seconds.
25 ///
26 /// Example: 1800
27 pub zonedst: i32,
28
29 /// Total offset from UTC in seconds.
30 ///
31 /// Example: 39600
32 pub zonetotaloffset: i32,
33}