Skip to content

Set time unit of a Series of dtype Datetime or Duration

Description

[Deprecated] Cast to Int64 and then to Datetime instead.

Usage

<Expr>$dt$with_time_unit(time_unit = c("ns", "us", "ms"))

Arguments

time_unit Time unit, one of ‘ns’, ‘us’, or ‘ms’.

Value

A polars expression