TIMEZONE (Lakehouse v1)
Devolve o fuso horário da ligação atual.
O PlaidCloud Lakehouse usa UTC (Tempo Universal Coordenado) como fuso horário predefinido e permite-lhe alterar o fuso horário para a sua localização geográfica atual. Para consultar os valores disponíveis que pode atribuir à definição timezone, consulte https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html. Veja os exemplos abaixo para mais detalhes.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.timezone()Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.timezone()┌─────────────────────┐│ timezone │├─────────────────────┤│ UTC │└─────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”SELECT TIMEZONE();Exemplos SQL
Seção intitulada “Exemplos SQL”-- 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 │└───────────────────────────┘