pub fn hour(array: &dyn Array) -> Result<PrimitiveArray<u32>>
Available on crate feature compute_temporal only.
Expand description

Extracts the hours of a temporal array as PrimitiveArray<u32>. Value ranges from 0 to 23. Use can_hour to check if this operation is supported for the target DataType.