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 UTC for a timestamp expr at timeZone.
For a list of valid timezones, see List of tz database time zones.
Syntax
to_utc_timestamp(expr, timeZone)
Arguments
expr: ATIMESTAMPexpression.timeZone: ASTRINGexpression that is a valid timezone.
Returns
A TIMESTAMP.
Examples
> SELECT to_utc_timestamp('2016-08-31', 'Asia/Seoul');
2016-08-30 15:00:00
> SELECT to_utc_timestamp( '2017-07-14 02:40:00.0', 'GMT+1');
2017-07-14 01:40:00.0