pub struct System { /* private fields */ }Expand description
System time, as grabbed from the system (obviously). Its timezone is dependent on the system’s timezone as configured in the BIOS
inner_secs is the time as seconds since 1601-01-01 00:00:00, from std::time
inner_milliseconds is the subsec milliseconds
Trait Implementations§
source§impl Ord for System
impl Ord for System
source§impl PartialEq for System
impl PartialEq for System
source§impl PartialOrd for System
impl PartialOrd for System
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Time for System
impl Time for System
source§fn strptime<T: ToString, G: ToString>(s: T, format: G) -> Self
fn strptime<T: ToString, G: ToString>(s: T, format: G) -> Self
Parse a string into a time struct Read more
source§fn strftime(&self, format: &str) -> String
fn strftime(&self, format: &str) -> String
Format the time according to the given format string Read more
source§fn from_epoch(timestamp: u64) -> Self
fn from_epoch(timestamp: u64) -> Self
Don’t use this method, it’s for internal use only (for instantiating structs from timestamps using the
1601-01-01 00:00:00 epoch)source§fn raw(&self) -> u64
fn raw(&self) -> u64
Don’t use this method, it’s for internal use only (returns raw struct ms)
source§fn windows_ns(&self) -> u64
fn windows_ns(&self) -> u64
Gets the time in nanoseconds (approximate) since Windows epoch (
1601-01-01 00:00:00) Read moresource§fn mac_os(&self) -> u64
fn mac_os(&self) -> u64
Get the time in seconds since the Mac OS epoch (1904-01-01 00:00:00) Read more
source§fn mac_os_cfa(&self) -> u64
fn mac_os_cfa(&self) -> u64
Get the time in seconds since the Mac OS Absolute epoch (2001-01-01 00:00:00) Read more
source§fn sas_4gl(&self) -> u64
fn sas_4gl(&self) -> u64
Get the time in seconds since the SAS 4GL epoch (1960-01-01 00:00:00) Read more
impl Eq for System
impl StructuralEq for System
impl StructuralPartialEq for System
Auto Trait Implementations§
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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