pub struct PosixTime32 {
pub timestamp: i32,
}Expand description
32-bit POSIX timestamp (time_t).
Fields§
§timestamp: i32Number of seconds since January 1, 1970 (UTC) (POSIX epoch). Negative values represent date and times predating the epoch.
Implementations§
Source§impl PosixTime32
impl PosixTime32
Sourcepub fn from_be_bytes(data: &[u8]) -> Self
pub fn from_be_bytes(data: &[u8]) -> Self
Reads a big-endian timestamp from a byte sequence.
Sourcepub fn from_le_bytes(data: &[u8]) -> Self
pub fn from_le_bytes(data: &[u8]) -> Self
Reads a little-endian timestamp from a byte sequence.
Sourcepub fn to_iso8601_string(&self) -> String
pub fn to_iso8601_string(&self) -> String
Retrieves an ISO 8601 string representation of the timestamp.
Trait Implementations§
Source§impl Clone for PosixTime32
impl Clone for PosixTime32
Source§fn clone(&self) -> PosixTime32
fn clone(&self) -> PosixTime32
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PosixTime32
impl Debug for PosixTime32
Source§impl Default for PosixTime32
impl Default for PosixTime32
Source§fn default() -> PosixTime32
fn default() -> PosixTime32
Returns the “default value” for a type. Read more
Source§impl Display for PosixTime32
impl Display for PosixTime32
Source§impl PartialEq for PosixTime32
impl PartialEq for PosixTime32
impl StructuralPartialEq for PosixTime32
Auto Trait Implementations§
impl Freeze for PosixTime32
impl RefUnwindSafe for PosixTime32
impl Send for PosixTime32
impl Sync for PosixTime32
impl Unpin for PosixTime32
impl UnsafeUnpin for PosixTime32
impl UnwindSafe for PosixTime32
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