CONVERT_TZ (Lakehouse v2)
Converts a datetime from one time zone to another.
Analyze Syntax
Section titled “Analyze Syntax”func.convert_tz(<datetime>, <from_tz>, <to_tz>)Analyze Examples
Section titled “Analyze Examples”func.convert_tz('2024-01-01 12:00:00', 'UTC', 'America/New_York')
┌───────────────────────┐│ '2024-01-01 07:00:00' │└───────────────────────┘SQL Syntax
Section titled “SQL Syntax”CONVERT_TZ(<datetime>, <from_tz>, <to_tz>)SQL Examples
Section titled “SQL Examples”SELECT CONVERT_TZ('2024-01-01 12:00:00', 'UTC', 'America/New_York');
┌─────────────────────┐│ 2024-01-01 07:00:00 │└─────────────────────┘