pub trait ToUtcDateTime {
// Required method
fn to_utc_datetime(self) -> Option<UtcDateTime>;
}Expand description
The trait helping convert to a UtcDateTime.
Required Methods§
Sourcefn to_utc_datetime(self) -> Option<UtcDateTime>
fn to_utc_datetime(self) -> Option<UtcDateTime>
Converts to a UtcDateTime.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ToUtcDateTime for i64
impl ToUtcDateTime for i64
Source§fn to_utc_datetime(self) -> Option<UtcDateTime>
fn to_utc_datetime(self) -> Option<UtcDateTime>
Converts a UNIX timestamp to a UtcDateTime.