Trait polars_time::chunkedarray::TimeMethods
source · [−]pub trait TimeMethods {
fn strftime(&self, fmt: &str) -> Utf8Chunked;
fn hour(&self) -> UInt32Chunked;
fn minute(&self) -> UInt32Chunked;
fn second(&self) -> UInt32Chunked;
fn nanosecond(&self) -> UInt32Chunked;
fn parse_from_str_slice(name: &str, v: &[&str], fmt: &str) -> TimeChunked;
}
Required methods
fn strftime(&self, fmt: &str) -> Utf8Chunked
fn strftime(&self, fmt: &str) -> Utf8Chunked
Format Date with a fmt
rule. See chrono strftime/strptime.
fn hour(&self) -> UInt32Chunked
fn hour(&self) -> UInt32Chunked
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
fn minute(&self) -> UInt32Chunked
fn minute(&self) -> UInt32Chunked
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
fn second(&self) -> UInt32Chunked
fn second(&self) -> UInt32Chunked
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
fn nanosecond(&self) -> UInt32Chunked
fn nanosecond(&self) -> UInt32Chunked
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.
fn parse_from_str_slice(name: &str, v: &[&str], fmt: &str) -> TimeChunked
Implementations on Foreign Types
sourceimpl TimeMethods for TimeChunked
impl TimeMethods for TimeChunked
sourcefn strftime(&self, fmt: &str) -> Utf8Chunked
fn strftime(&self, fmt: &str) -> Utf8Chunked
Format Date with a fmt
rule. See chrono strftime/strptime.
sourcefn hour(&self) -> UInt32Chunked
fn hour(&self) -> UInt32Chunked
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
sourcefn minute(&self) -> UInt32Chunked
fn minute(&self) -> UInt32Chunked
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
sourcefn second(&self) -> UInt32Chunked
fn second(&self) -> UInt32Chunked
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
sourcefn nanosecond(&self) -> UInt32Chunked
fn nanosecond(&self) -> UInt32Chunked
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.