mz_expr::func

Function timezone_timestamptz

Source
pub fn timezone_timestamptz(
    tz: Timezone,
    utc: DateTime<Utc>,
) -> Result<NaiveDateTime, EvalError>
Expand description

Converts the UTC timestamptz utc to the local timestamp of the timezone tz. For example, EST and 2020-11-11T17:39:14Z would return 2020-11-11T12:39:14.