This topic describes how to use the date function LOCALTIME in Realtime Compute.
Syntax
TIME LOCALTIME
Description
Returns the current time of the TIME type in the session time zone. You can use LOCALTIME as a variable.
Example
- Test statements
SELECT LOCALTIME as `result` FROM T1;
- Test results
result (TIME) 19:00:47