Trait polars_time::chunkedarray::DurationMethods
source · pub trait DurationMethods {
fn hours(&self) -> Int64Chunked;
fn days(&self) -> Int64Chunked;
fn minutes(&self) -> Int64Chunked;
fn seconds(&self) -> Int64Chunked;
fn milliseconds(&self) -> Int64Chunked;
fn microseconds(&self) -> Int64Chunked;
fn nanoseconds(&self) -> Int64Chunked;
}
Available on crate feature
dtype-duration
only.Required Methods§
sourcefn hours(&self) -> Int64Chunked
fn hours(&self) -> Int64Chunked
Extract the hours from a Duration
sourcefn days(&self) -> Int64Chunked
fn days(&self) -> Int64Chunked
Extract the days from a Duration
sourcefn minutes(&self) -> Int64Chunked
fn minutes(&self) -> Int64Chunked
Extract the minutes from a Duration
sourcefn seconds(&self) -> Int64Chunked
fn seconds(&self) -> Int64Chunked
Extract the seconds from a Duration
sourcefn milliseconds(&self) -> Int64Chunked
fn milliseconds(&self) -> Int64Chunked
Extract the milliseconds from a Duration
sourcefn microseconds(&self) -> Int64Chunked
fn microseconds(&self) -> Int64Chunked
Extract the microseconds from a Duration
sourcefn nanoseconds(&self) -> Int64Chunked
fn nanoseconds(&self) -> Int64Chunked
Extract the nanoseconds from a Duration
Implementations on Foreign Types§
source§impl DurationMethods for DurationChunked
impl DurationMethods for DurationChunked
source§fn hours(&self) -> Int64Chunked
fn hours(&self) -> Int64Chunked
Extract the hours from a Duration
source§fn days(&self) -> Int64Chunked
fn days(&self) -> Int64Chunked
Extract the days from a Duration
source§fn minutes(&self) -> Int64Chunked
fn minutes(&self) -> Int64Chunked
Extract the seconds from a Duration
source§fn seconds(&self) -> Int64Chunked
fn seconds(&self) -> Int64Chunked
Extract the seconds from a Duration
source§fn milliseconds(&self) -> Int64Chunked
fn milliseconds(&self) -> Int64Chunked
Extract the milliseconds from a Duration
source§fn microseconds(&self) -> Int64Chunked
fn microseconds(&self) -> Int64Chunked
Extract the microseconds from a Duration
source§fn nanoseconds(&self) -> Int64Chunked
fn nanoseconds(&self) -> Int64Chunked
Extract the nanoseconds from a Duration