fn date_part_primitive<T: ArrowTemporalType>( array: &PrimitiveArray<T>, part: DatePart, ) -> Result<Int32Array, ArrowError>
Used to integrate new date_part() method with deprecated shims such as hour() and week().
date_part()
hour()
week()