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.