to_utc_timestamp
function
Applies to: Databricks SQL Databricks Runtime
Returns the timestamp in expr
in a different timezone as UTC.
Syntax
to_utc_timestamp(expr, timezone)
Arguments
expr
: A TIMESTAMP expression.timezone
: A STRING expression 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
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for