Time
This structure represents time information.
Fields of this type
Fields
- year:u16
- 1900 - 9999
- month:u8
- 1 - 12
- day:u8
- 1 - 31
- hour:u8
- 0 - 23
- minute:u8
- 0 - 59
- second:u8
- 0 - 59
- _pad1:u8
- nanosecond:u32
- 0 - 999999999
- timezone:i16
- The time's offset in minutes from UTC.
- daylight:packed struct(u8) { /// If true, the time has been adjusted for daylight savings time. in_daylight: bool, /// If true, the time is affected by daylight savings time. adjust_daylight: bool, _: u6, }
- _pad2:u8
Functions in this namespace
Functions
Time is to be interpreted as local time
Values
- unspecified_timezone
- Time is to be interpreted as local time