Skip to main content

convert_time_zone

Function convert_time_zone 

Source
pub fn convert_time_zone(
    input: Expression,
    time_zone: impl Into<Arc<str>>,
) -> Expression
Expand description

Change the time zone of a Timestamp and keep its instant, so the stored count does not change.

The input must be a Timestamp with a time zone, or binding fails. Use replace_time_zone to keep the local clock time in another zone instead.