Skip to main content
Skip to main content

UTC_TIMESTAMP

utc_timestamp​

Description​

Syntax​

DATETIME UTC_TIMESTAMP()

Returns the current UTC date and time in "YYYY-MM-DD HH: MM: SS" or

A Value of "YYYYMMDDHMMSS" Format

Depending on whether the function is used in a string or numeric context

example​

mysql> select utc_timestamp(),utc_timestamp() + 1;
+---------------------+---------------------+
| utc_timestamp() | utc_timestamp() + 1 |
+---------------------+---------------------+
| 2019-07-10 12:31:18 | 20190710123119 |
+---------------------+---------------------+

keywords​

UTC_TIMESTAMP,UTC,TIMESTAMP