Trait polars::prelude::chunkedarray::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: &str,
        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: &str, v: &[&str], fmt: &str ) -> Logical<TimeType, Int64Type>

Object Safety§

This trait is not object safe.

Implementors§