pub fn weekday(array: &dyn Array) -> Result<PrimitiveArray<u32>>
Available on crate feature
compute_temporal
only.Expand description
Extracts weekday of a temporal array as PrimitiveArray<u32>
.
Monday is 1, Tuesday is 2, …, Sunday is 7.
Use can_weekday
to check if this operation is supported for the target DataType