Skip to main content
Version: V1.1.0

UTC_TIME

Declaration

UTC_TIME([fsp])

Description

Returns the current UTC time in the %H:%i:%s format.

The fsp parameter specifies the precision of seconds, with valid values ranging from 0 to 6.

Example

SELECT UTC_TIME(), UTC_TIME() + 0, UTC_TIME() + 6;
+------------+----------------+----------------+
| UTC_TIME() | UTC_TIME() + 0 | UTC_TIME() + 6 |
+------------+----------------+----------------+
| 00:57:50 | 5750 | 5756 |
+------------+----------------+----------------+
1 row in set (0.001 sec)