All Products
Search
Document Center

MaxCompute:CURRENT_TIMEZONE

Last Updated:Jan 24, 2024

The CURRENT_TIMEZONE function returns the time zone of the current system. This topic describes the syntax of the CURRENT_TIMEZONE function. This topic also provides examples on how to use the CURRENT_TIMEZONE function.

Syntax

string current_timezone()

Return value

A value of the STRING type is returned.

Examples

-- The return value is Asia/Shanghai. 
select current_timezone();

Related functions

CURRENT_TIMEZONE is a date function. For more information about functions related to date computing and conversion, see Date functions.