pub fn num_days_from_sunday<T>(
    array: &PrimitiveArray<T>
) -> Result<PrimitiveArray<Int32Type>, ArrowError>where
    T: ArrowTemporalType + ArrowNumericType,
    i64: From<<T as ArrowPrimitiveType>::Native>,
Expand description

Extracts the day of week of a given temporal primitive array as an array of integers, starting at Sunday.

Sunday is encoded as 0, Monday as 1, etc.

See also num_days_from_monday which starts at Monday.