Function arrow_arith::temporal::year_dyn

source ·
pub fn year_dyn(array: &dyn Array) -> Result<ArrayRef, ArrowError>
Expand description

Extracts the years of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, an Err will be returned.