TIMEZONE (Lakehouse v1)
Returns the timezone for the current connection.
PlaidCloud Lakehouse uses UTC (Coordinated Universal Time) as the default timezone and allows you to change the timezone to your current geographic location. For the available values you can assign to the timezone setting, refer to https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html. See the examples below for details.
Analyze Syntax
Section titled “Analyze Syntax”func.timezone()Analyze Examples
Section titled “Analyze Examples”func.timezone()┌─────────────────────┐│ timezone │├─────────────────────┤│ UTC │└─────────────────────┘SQL Syntax
Section titled “SQL Syntax”SELECT TIMEZONE();SQL Examples
Section titled “SQL Examples”-- Return the current timezoneSELECT TIMEZONE();┌─────────────────┐│ TIMEZONE('UTC') │├─────────────────┤│ UTC │└─────────────────┘
-- Set the timezone to China Standard TimeSET timezone='Asia/Shanghai';
SELECT TIMEZONE();┌───────────────────────────┐│ TIMEZONE('Asia/Shanghai') │├───────────────────────────┤│ Asia/Shanghai │└───────────────────────────┘