Trait polars::prelude::TimeMethods
source · [−]pub trait TimeMethods {
fn strftime(&self, fmt: &str) -> ChunkedArray<Utf8Type>;
fn hour(&self) -> ChunkedArray<UInt32Type>;
fn minute(&self) -> ChunkedArray<UInt32Type>;
fn second(&self) -> ChunkedArray<UInt32Type>;
fn nanosecond(&self) -> ChunkedArray<UInt32Type>;
fn parse_from_str_slice(
name: &str,
v: &[&str],
fmt: &str
) -> Logical<TimeType, Int64Type>;
}
Required methods
fn strftime(&self, fmt: &str) -> ChunkedArray<Utf8Type>
fn strftime(&self, fmt: &str) -> ChunkedArray<Utf8Type>
Format Date with a fmt
rule. See chrono strftime/strptime.
fn hour(&self) -> ChunkedArray<UInt32Type>
fn hour(&self) -> ChunkedArray<UInt32Type>
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
fn minute(&self) -> ChunkedArray<UInt32Type>
fn minute(&self) -> ChunkedArray<UInt32Type>
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
fn second(&self) -> ChunkedArray<UInt32Type>
fn second(&self) -> ChunkedArray<UInt32Type>
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
fn nanosecond(&self) -> ChunkedArray<UInt32Type>
fn nanosecond(&self) -> ChunkedArray<UInt32Type>
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.