polars.Expr.dt.cast_time_zone#

Expr.dt.cast_time_zone(tz: str) Expr[source]#

Cast time zone for a Series of type Datetime.

Different from with_time_zone, this will also modify the underlying timestamp,

Parameters:
tz

Time zone for the Datetime Series.