polars_arrow::compute::cast

Function timestamp_to_timestamp

Source
pub fn timestamp_to_timestamp(
    from: &PrimitiveArray<i64>,
    from_unit: TimeUnit,
    to_unit: TimeUnit,
    tz: &Option<PlSmallStr>,
) -> PrimitiveArray<i64>
Available on crate feature compute_cast only.
Expand description

Conversion of timestamp