pub trait OffsetDateTimeExt: OffsetDateTimeExt {
// Required method
fn to_timezone<T: TimeZone>(&self, tz: &T) -> OffsetDateTime;
}Required Methods§
Sourcefn to_timezone<T: TimeZone>(&self, tz: &T) -> OffsetDateTime
fn to_timezone<T: TimeZone>(&self, tz: &T) -> OffsetDateTime
Converts this OffsetDateTime to a different TimeZone.
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.