pub trait DurationMethods {
Show 14 methods
// Required methods
fn days(&self) -> ChunkedArray<Int64Type>;
fn days_fractional(&self) -> ChunkedArray<Float64Type>;
fn hours(&self) -> ChunkedArray<Int64Type>;
fn hours_fractional(&self) -> ChunkedArray<Float64Type>;
fn minutes(&self) -> ChunkedArray<Int64Type>;
fn minutes_fractional(&self) -> ChunkedArray<Float64Type>;
fn seconds(&self) -> ChunkedArray<Int64Type>;
fn seconds_fractional(&self) -> ChunkedArray<Float64Type>;
fn milliseconds(&self) -> ChunkedArray<Int64Type>;
fn milliseconds_fractional(&self) -> ChunkedArray<Float64Type>;
fn microseconds(&self) -> ChunkedArray<Int64Type>;
fn microseconds_fractional(&self) -> ChunkedArray<Float64Type>;
fn nanoseconds(&self) -> ChunkedArray<Int64Type>;
fn nanoseconds_fractional(&self) -> ChunkedArray<Float64Type>;
}
Available on crate feature
temporal
only.Required Methods§
Sourcefn days(&self) -> ChunkedArray<Int64Type>
fn days(&self) -> ChunkedArray<Int64Type>
Extract the days from a Duration
Sourcefn days_fractional(&self) -> ChunkedArray<Float64Type>
fn days_fractional(&self) -> ChunkedArray<Float64Type>
Extract the days from a Duration
as a fractional value
Sourcefn hours(&self) -> ChunkedArray<Int64Type>
fn hours(&self) -> ChunkedArray<Int64Type>
Extract the hours from a Duration
Sourcefn hours_fractional(&self) -> ChunkedArray<Float64Type>
fn hours_fractional(&self) -> ChunkedArray<Float64Type>
Extract the hours from a Duration
as a fractional value
Sourcefn minutes(&self) -> ChunkedArray<Int64Type>
fn minutes(&self) -> ChunkedArray<Int64Type>
Extract the minutes from a Duration
Sourcefn minutes_fractional(&self) -> ChunkedArray<Float64Type>
fn minutes_fractional(&self) -> ChunkedArray<Float64Type>
Extract the minutes from a Duration
as a fractional value
Sourcefn seconds(&self) -> ChunkedArray<Int64Type>
fn seconds(&self) -> ChunkedArray<Int64Type>
Extract the seconds from a Duration
Sourcefn seconds_fractional(&self) -> ChunkedArray<Float64Type>
fn seconds_fractional(&self) -> ChunkedArray<Float64Type>
Extract the seconds from a Duration
as a fractional value
Sourcefn milliseconds(&self) -> ChunkedArray<Int64Type>
fn milliseconds(&self) -> ChunkedArray<Int64Type>
Extract the milliseconds from a Duration
Sourcefn milliseconds_fractional(&self) -> ChunkedArray<Float64Type>
fn milliseconds_fractional(&self) -> ChunkedArray<Float64Type>
Extract the milliseconds from a Duration
as a fractional value
Sourcefn microseconds(&self) -> ChunkedArray<Int64Type>
fn microseconds(&self) -> ChunkedArray<Int64Type>
Extract the microseconds from a Duration
Sourcefn microseconds_fractional(&self) -> ChunkedArray<Float64Type>
fn microseconds_fractional(&self) -> ChunkedArray<Float64Type>
Extract the microseconds from a Duration
as a fractional value
Sourcefn nanoseconds(&self) -> ChunkedArray<Int64Type>
fn nanoseconds(&self) -> ChunkedArray<Int64Type>
Extract the nanoseconds from a Duration
Sourcefn nanoseconds_fractional(&self) -> ChunkedArray<Float64Type>
fn nanoseconds_fractional(&self) -> ChunkedArray<Float64Type>
Extract the nanoseconds from a Duration
as a fractional value