current_timezone 函数

适用于:Databricks SQL check marked yes Databricks Runtime

返回当前会话的本地时区。

语法

current_timezone()

参数

此函数没有参数。

返回

一个 STRING。

示例

> SELECT current_timezone();
 Asia/Shanghai