Skip to main content

utc_timestamp

utc_timestamp

Description

Syntax

DATETIME UTC_TIMESTAMP()

Returns a value of the current UTC date and time in the format of "YYYY-MM-DD HH: MM: SS" or "YYYYMMDDHMMSS".

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