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§
Sourcefn hour(&self) -> ChunkedArray<Int8Type>
fn hour(&self) -> ChunkedArray<Int8Type>
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
Sourcefn minute(&self) -> ChunkedArray<Int8Type>
fn minute(&self) -> ChunkedArray<Int8Type>
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
Sourcefn second(&self) -> ChunkedArray<Int8Type>
fn second(&self) -> ChunkedArray<Int8Type>
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
Sourcefn nanosecond(&self) -> ChunkedArray<Int32Type>
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.
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.