Function polars::export::arrow::compute::arithmetics::time::sub_timestamps_scalar
source · [−]pub fn sub_timestamps_scalar(
lhs: &PrimitiveArray<i64>,
rhs: &PrimitiveScalar<i64>
) -> Result<PrimitiveArray<i64>, ArrowError>
This is supported on crate feature
compute_arithmetics
only.Expand description
Calculates the difference between two timestamps as DataType::Duration
with the same time scale.