The UTC_TIME() function returns the current UTC time as a string hh:mm:ss or numerically as BIGINT hhmmss or as DECIMAL hhmmss.microseconds, depending on whether the function is used in string or numeric context.
The value is expressed in the format of the current session time zone.
The "Precision" argument can be specified to indicate a fractional second precision from 0 to 6 digits.
The specification of "Precision" must be a written number from 0-6. Expressions or variables produce a syntax error, larger values produce a precision error.
With the UTC_TIME() function, the parentheses can be omitted if "Precision" is not specified.
Setting the system variable timestamp affects the UTC_TIME() function. |