pub struct Date {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub utc_offset_minutes: i16,
}Expand description
A calendar date and time with a UTC offset, for /CreationDate and
/ModDate. The writer never reads a clock — dates appear in output
only when a caller provides them, keeping builds reproducible.
Fields§
§year: u16Four-digit year.
month: u8Month, 1–12.
day: u8Day of month, 1–31.
hour: u8Hour, 0–23.
minute: u8Minute, 0–59.
second: u8Second, 0–59.
utc_offset_minutes: i16Offset from UTC in minutes (positive east).
Implementations§
Trait Implementations§
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnsafeUnpin for Date
impl UnwindSafe for Date
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more