Trait polars_time::PolarsTruncate
source · pub trait PolarsTruncate {
// Required method
fn truncate(
&self,
every: Duration,
offset: Duration,
tz: Option<&impl PolarsTimeZone>
) -> PolarsResult<Self>
where Self: Sized;
}
Required Methods§
fn truncate( &self, every: Duration, offset: Duration, tz: Option<&impl PolarsTimeZone> ) -> PolarsResult<Self>where Self: Sized,
Implementations on Foreign Types§
source§impl PolarsTruncate for DateChunked
Available on crate feature dtype-date
only.
impl PolarsTruncate for DateChunked
Available on crate feature
dtype-date
only.fn truncate( &self, every: Duration, offset: Duration, _tz: Option<&impl PolarsTimeZone> ) -> PolarsResult<Self>
source§impl PolarsTruncate for DatetimeChunked
Available on crate feature dtype-datetime
only.
impl PolarsTruncate for DatetimeChunked
Available on crate feature
dtype-datetime
only.