polars::prelude::chunkedarray

Trait DurationMethods

Source
pub trait DurationMethods {
    // Required methods
    fn hours(&self) -> ChunkedArray<Int64Type>;
    fn days(&self) -> ChunkedArray<Int64Type>;
    fn minutes(&self) -> ChunkedArray<Int64Type>;
    fn seconds(&self) -> ChunkedArray<Int64Type>;
    fn milliseconds(&self) -> ChunkedArray<Int64Type>;
    fn microseconds(&self) -> ChunkedArray<Int64Type>;
    fn nanoseconds(&self) -> ChunkedArray<Int64Type>;
}
Available on crate feature temporal only.

Required Methods§

Source

fn hours(&self) -> ChunkedArray<Int64Type>

Extract the hours from a Duration

Source

fn days(&self) -> ChunkedArray<Int64Type>

Extract the days from a Duration

Source

fn minutes(&self) -> ChunkedArray<Int64Type>

Extract the minutes from a Duration

Source

fn seconds(&self) -> ChunkedArray<Int64Type>

Extract the seconds from a Duration

Source

fn milliseconds(&self) -> ChunkedArray<Int64Type>

Extract the milliseconds from a Duration

Source

fn microseconds(&self) -> ChunkedArray<Int64Type>

Extract the microseconds from a Duration

Source

fn nanoseconds(&self) -> ChunkedArray<Int64Type>

Extract the nanoseconds from a Duration

Implementors§