MySQL Tutorial/Date Time Functions/UTC TIME

Материал из SQL эксперт
Перейти к: навигация, поиск

UTC_TIME() returns the current UTC time.

The format is in "HH:MM:SS" or HHMMSS format, depending on whether the function is used in a string or numeric context.



   <source lang="sql">

mysql> mysql> SELECT UTC_TIME(), UTC_TIME() + 0; +------------+----------------+ | UTC_TIME() | UTC_TIME() + 0 | +------------+----------------+ | 02:46:23 | 24623.000000 | +------------+----------------+ 1 row in set (0.00 sec) mysql></source>