pub struct SystemTime;Available on crate features 
fmt and std only.Expand description
Retrieve and print the current wall-clock time.
Implementations§
Source§impl SystemTime
 
impl SystemTime
Sourcepub const fn rfc3339_seconds() -> Timer<SystemClock, Rfc3339<0, true>>
 
pub const fn rfc3339_seconds() -> Timer<SystemClock, Rfc3339<0, true>>
RFC3339 with no fractional seconds and ‘Z’.
Sourcepub const fn rfc3339_millis() -> Timer<SystemClock, Rfc3339<3, true>>
 
pub const fn rfc3339_millis() -> Timer<SystemClock, Rfc3339<3, true>>
RFC3339 with 3 fractional digits (milliseconds) and ‘Z’.
Sourcepub const fn rfc3339_nanos() -> Timer<SystemClock, Rfc3339<9, true>>
 
pub const fn rfc3339_nanos() -> Timer<SystemClock, Rfc3339<9, true>>
RFC3339 with 9 fractional digits (nanoseconds) and ‘Z’.
Sourcepub const fn unix_seconds() -> Timer<SystemClock, UnixSeconds>
 
pub const fn unix_seconds() -> Timer<SystemClock, UnixSeconds>
Seconds since UNIX epoch (UTC).
Sourcepub const fn unix_millis() -> Timer<SystemClock, UnixMillis>
 
pub const fn unix_millis() -> Timer<SystemClock, UnixMillis>
Milliseconds since UNIX epoch (UTC).
Sourcepub const fn unix_micros() -> Timer<SystemClock, UnixMicros>
 
pub const fn unix_micros() -> Timer<SystemClock, UnixMicros>
Microseconds since UNIX epoch (UTC).
Sourcepub const fn unix_nanos() -> Timer<SystemClock, UnixNanos>
 
pub const fn unix_nanos() -> Timer<SystemClock, UnixNanos>
Nanoseconds since UNIX epoch (UTC).
Source§impl SystemTime
 
impl SystemTime
Sourcepub const fn time_only_secs() -> Timer<SystemClock, TimeOfDay<0>>
 
pub const fn time_only_secs() -> Timer<SystemClock, TimeOfDay<0>>
Time-of-day with whole seconds, no suffix: HH:MM:SS
Sourcepub const fn time_only_millis() -> Timer<SystemClock, TimeOfDay<3>>
 
pub const fn time_only_millis() -> Timer<SystemClock, TimeOfDay<3>>
Time-of-day with milliseconds, no suffix: HH:MM:SS.mmm
Sourcepub const fn time_only_micros() -> Timer<SystemClock, TimeOfDay<6>>
 
pub const fn time_only_micros() -> Timer<SystemClock, TimeOfDay<6>>
Time-of-day with microseconds, no suffix: HH:MM:SS.uuuuuu
Trait Implementations§
Source§impl Clone for SystemTime
 
impl Clone for SystemTime
Source§fn clone(&self) -> SystemTime
 
fn clone(&self) -> SystemTime
Returns a duplicate of the value. Read more
1.0.0 · 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 SystemTime
 
impl Debug for SystemTime
Source§impl Default for SystemTime
 
impl Default for SystemTime
Source§fn default() -> SystemTime
 
fn default() -> SystemTime
Returns the “default value” for a type. Read more
Source§impl FormatTime for SystemTime
 
impl FormatTime for SystemTime
Source§impl PartialEq for SystemTime
 
impl PartialEq for SystemTime
impl Copy for SystemTime
impl Eq for SystemTime
impl StructuralPartialEq for SystemTime
Auto Trait Implementations§
impl Freeze for SystemTime
impl RefUnwindSafe for SystemTime
impl Send for SystemTime
impl Sync for SystemTime
impl Unpin for SystemTime
impl UnwindSafe for SystemTime
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