arrow_arith::temporal

Function date_part_primitive

Source
fn date_part_primitive<T: ArrowTemporalType>(
    array: &PrimitiveArray<T>,
    part: DatePart,
) -> Result<Int32Array, ArrowError>
Expand description

Used to integrate new date_part() method with deprecated shims such as hour() and week().