pub struct Time {}Expand description
The time api gives you access to real world time functionality.
Implementations§
source§impl Time
impl Time
sourcepub fn format_instant_for_display(
self,
i: Instant,
format: TimeFormat
) -> String
pub fn format_instant_for_display( self, i: Instant, format: TimeFormat ) -> String
Takes an UTC time returned from now(), and formats it into a displayable string.
The exact contents of the string can depend on the locale - so DO NOT try to parse the contents, only display it directly.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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