pub trait DateMethods {
    fn year(&self) -> ChunkedArray<Int32Type>;
    fn month(&self) -> ChunkedArray<UInt32Type>;
    fn weekday(&self) -> ChunkedArray<UInt32Type>;
    fn week(&self) -> ChunkedArray<UInt32Type>;
    fn day(&self) -> ChunkedArray<UInt32Type>;
    fn ordinal(&self) -> ChunkedArray<UInt32Type>;
    fn parse_from_str_slice(
        name: &str,
        v: &[&str],
        fmt: &str
    ) -> Logical<DateType, Int32Type>; }

Required Methods

Extract month from underlying NaiveDate representation. Returns the year number in the calendar date.

Extract month from underlying NaiveDateTime representation. Returns the month number starting from 1.

The return value ranges from 1 to 12.

Extract weekday from underlying NaiveDate representation. Returns the weekday number where monday = 0 and sunday = 6

Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)

Extract day from underlying NaiveDate representation. Returns the day of month starting from 1.

The return value ranges from 1 to 31. (The last day of month differs by months.)

Returns the day of year starting from 1.

The return value ranges from 1 to 366. (The last day of year differs by years.)

Implementors