Collections:
UTC_TIME() - Current UTC Time
How to obtain the current UTC time using the UTC_TIME() function?
✍: FYIcenter.com
UTC_TIME(prec) is a MySQL built-in function that
returns the current UTC time.
For example:
SELECT UTC_TIME(6), NOW(6), @@system_time_zone; -- +-----------------+----------------------------+--------------------+ -- | UTC_TIME(6) | NOW(6) | @@system_time_zone | -- +-----------------+----------------------------+--------------------+ -- | 04:20:09.755859 | 2023-11-15 23:20:09.755859 | EST | -- +-----------------+----------------------------+--------------------+
Reference information of the UTC_TIME() function:
UTC_TIME(prec): time Returns the current UTC time as a value in 'hh:mm:ss' or hhmmss format, depending on whether the function is used in string or numeric context. Arguments, return value and availability: prec: Optional. Default is 0. The precision of fractional seconds. time: Return value. The current UTC time. Available since MySQL 4.
Related MySQL functions:
⇒ UTC_TIMESTAMP() - Current UTC Timestamp
⇐ UTC_DATE() - Current UTC Date
2023-11-17, 799🔥, 0💬
Popular Posts:
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How To End a Stored Procedure Properly in SQL Server Transact-SQL? Where the end of the "CREATE PROC...
Can Date and Time Values Be Converted into Integers in SQL Server Transact-SQL? Can date and time va...