pub enum TimeFormat {
Time24,
Time12,
Locale,
Custom(String),
}Expand description
Selects how unix timestamps are rendered to locale strings.
Variants§
Time24
24-hour clock format (%Y-%m-%d %H:%M:%S).
Time12
12-hour clock format with AM/PM (%Y-%m-%d %I:%M:%S %p).
Locale
The platform/system locale’s default date-time representation.
Custom(String)
A custom chrono-style format string.
Auto Trait Implementations§
impl Freeze for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnsafeUnpin for TimeFormat
impl UnwindSafe for TimeFormat
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