UTC_TIME is a MySQL and MariaDB built-in date-and-time function that outputs the current time at the zero-offset UTC time zone. Unlike NOW() or CURRENT_TIME, the result is never dependent on the session or system time_zone setting. The function can be called without arguments or with an optional fractional-seconds precision (fsp) argument that ranges from 0 to 6. Internally, MySQL converts the host machine’s clock to UTC, then trims the date portion, returning only the time. The data type of the result is TIME; in string context it appears as 'HH:MM:SS[.fraction]'. Because no date component is included, the value cannot on its own determine whether it belongs to today or the previous/next day in other time zones. UTC_TIME is deterministic within a single statement but non-deterministic across statements because its value changes as time advances.
MySQL 4.1
UTC_TIME returns the current Coordinated Universal Time in HH:MM:SS format (plus optional fractional seconds). No date component is included.
Pass a fractional-second precision argument: `SELECT UTC_TIME(3);` returns a value like 14:23:05.123.
No. UTC_TIME always reports the time at UTC+00:00, ignoring `@@session.time_zone`.
Native support exists in MySQL, MariaDB, and compatible forks like TiDB. Other databases require alternate syntax to obtain UTC time.