pub trait IntoDateTime: Sized {
// Required method
fn into_datetime(self) -> (Date, u8, u8, u8);
}Expand description
This trait represents the fact that some time instant may be mapped back to the date-time pair that it corresponds with, at an accuracy of seconds.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl IntoDateTime for UtcTime
impl<Scale> IntoDateTime for TimePoint<Scale>where
Scale: ?Sized + UniformDateTimeScale,
impl<TimePoint> IntoDateTime for TimePointwhere
TimePoint: IntoLeapSecondDateTime,
We provide a default implementation that uses the static leap second provider.