All Products
Search
Document Center

MaxCompute:GETDATE

Last Updated:Jul 21, 2023

Returns the current system time. MaxCompute uses UTC+8 as the standard time zone.

Syntax

datetime getdate()

Return value

The current date and time are returned, which are of the DATETIME type.

Note

In MaxCompute SQL, GETDATE always returns a fixed value. The return value is an arbitrary time during the execution of the MaxCompute SQL job. The time is accurate to the second. If you enable the MaxCompute V2.0 data type edition, the time is accurate to the millisecond.

Related functions

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