UTC_TIME

2023-10-24 09:23:03  Updated

Syntax

UTC_TIME([fsp])

Purpose

You can call this function to return the current UTC date in the %H:%i:%s format.

The fsp argument specifies the precision of the second part, and the valid values are an integer from 0 to 6.

Examples

obclient> SELECT UTC_TIME(), UTC_TIME() + 0, UTC_TIME() + 6;
+------------+----------------+----------------+
 UTC_TIME()  UTC_TIME() + 0  UTC_TIME() + 6 
+------------+----------------+----------------+
 13:07:35            130735          130741 
+------------+----------------+----------------+
1 row in set (0.00 sec)

Contact Us