Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime
Returns the timestamp at timeZone for a timestamp expr at UTC.
For a list of valid timezones, see List of tz database time zones.
Syntax
from_utc_timestamp(expr, timeZone)
Arguments
expr: ATIMESTAMPexpression with a UTC timestamp.timeZone: ASTRINGexpression that is a valid timezone.
Returns
A TIMESTAMP.
Examples
> SELECT from_utc_timestamp('2016-08-31', 'Asia/Seoul');
2016-08-31 09:00:00
> SELECT from_utc_timestamp('2017-07-14 02:40:00.0', 'GMT+1');
'2017-07-14 03:40:00.0'