Function arrow_arith::temporal::num_days_from_monday_dyn
source · pub fn num_days_from_monday_dyn(
array: &dyn Array
) -> Result<ArrayRef, ArrowError>
Expand description
Extracts the day of week of a given temporal array as an array of integers.
Monday is encoded as 0
, Tuesday as 1
, etc.
See also num_days_from_sunday
which starts at Sunday.
If the given array isn’t temporal primitive or dictionary array,
an Err
will be returned.