Function arrow_arith::temporal::year

source ·
pub fn year<T>(array: &PrimitiveArray<T>) -> Result<Int32Array, ArrowError>where
    T: ArrowTemporalType + ArrowNumericType,
    i64: From<T::Native>,
Expand description

Extracts the years of a given temporal primitive array as an array of integers