pub struct BaseDate {
pub year: i64,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
pub millisecond: u32,
pub has_time: bool,
}Expand description
A calendar date-time with millisecond resolution. Stored as broken-down fields plus a total-milliseconds value (epoch-relative, proleptic Gregorian) so date arithmetic and ordering are exact without pulling in a datetime dependency.
Fields§
§year: i64§month: u32§day: u32§hour: u32§minute: u32§second: u32§millisecond: u32§has_time: boolWhether the source carried a time component (drives default formatting:
a bare 2024-01-02 renders without the 00:00:00).
Implementations§
Trait Implementations§
impl Copy for BaseDate
Source§impl PartialOrd for BaseDate
impl PartialOrd for BaseDate
impl StructuralPartialEq for BaseDate
Auto Trait Implementations§
impl Freeze for BaseDate
impl RefUnwindSafe for BaseDate
impl Send for BaseDate
impl Sync for BaseDate
impl Unpin for BaseDate
impl UnsafeUnpin for BaseDate
impl UnwindSafe for BaseDate
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