pub struct DateTime {
pub utc_time: [u8; 5],
pub local_offset: Option<i16>,
}Expand description
date_time() — current UTC date/time with optional local offset (Table 32).
Fields§
§utc_time: [u8; 5]UTC_time — 5 bytes, MJD (2) + BCD HH:MM:SS (3), as in TDT/TOT.
local_offset: Option<i16>local_offset — optional signed minutes (Local = UTC + offset); present
only when the host has reliable knowledge (length_field = 7 vs 5).
Trait Implementations§
impl Copy for DateTime
impl Eq for DateTime
Source§impl Serialize for DateTime
impl Serialize for DateTime
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
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