polars::prelude::chunkedarray

Trait TimeMethods

Source
pub trait TimeMethods {
    // Required methods
    fn hour(&self) -> ChunkedArray<Int8Type>;
    fn minute(&self) -> ChunkedArray<Int8Type>;
    fn second(&self) -> ChunkedArray<Int8Type>;
    fn nanosecond(&self) -> ChunkedArray<Int32Type>;
    fn parse_from_str_slice(
        name: PlSmallStr,
        v: &[&str],
        fmt: &str,
    ) -> Logical<TimeType, Int64Type>;
}
Available on crate feature temporal only.

Required Methods§

Source

fn hour(&self) -> ChunkedArray<Int8Type>

Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.

Source

fn minute(&self) -> ChunkedArray<Int8Type>

Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.

Source

fn second(&self) -> ChunkedArray<Int8Type>

Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.

Source

fn nanosecond(&self) -> ChunkedArray<Int32Type>

Extract second from underlying NaiveDateTime representation. Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second.

Source

fn parse_from_str_slice( name: PlSmallStr, v: &[&str], fmt: &str, ) -> Logical<TimeType, Int64Type>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§