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

Format Date with a fmt rule. See chrono strftime/strptime.

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

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

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

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.

Implementors