Type Definition polars_core::datatypes::DatetimeChunked
source · [−]pub type DatetimeChunked = Logical<DatetimeType, Int64Type>;
Implementations
sourceimpl DatetimeChunked
impl DatetimeChunked
pub fn as_datetime_iter(
&self
) -> impl Iterator<Item = Option<NaiveDateTime>> + TrustedLen + '_
pub fn time_unit(&self) -> TimeUnit
pub fn time_zone(&self) -> &Option<TimeZone>
sourcepub fn from_naive_datetime<I: IntoIterator<Item = NaiveDateTime>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
pub fn from_naive_datetime<I: IntoIterator<Item = NaiveDateTime>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
Construct a new DatetimeChunked
from an iterator over NaiveDateTime
.
pub fn from_naive_datetime_options<I: IntoIterator<Item = Option<NaiveDateTime>>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
sourcepub fn cast_time_unit(&self, tu: TimeUnit) -> Self
pub fn cast_time_unit(&self, tu: TimeUnit) -> Self
Change the underlying TimeUnit
. And update the data accordingly.
sourcepub fn set_time_unit(&mut self, tu: TimeUnit)
pub fn set_time_unit(&mut self, tu: TimeUnit)
Change the underlying TimeUnit
. This does not modify the data.
sourcepub fn set_time_zone(&mut self, tz: Option<TimeZone>)
pub fn set_time_zone(&mut self, tz: Option<TimeZone>)
Change the underlying TimeZone
. This does not modify the data.