Skip to content

UTC_TIMESTAMP()

Description

Returns the current UTC date and time as a value in 'YYYY-MM-DD hh:mm:ss' or YYYYMMDDhhmmss format, depending on whether the function is used in string or numeric context.

Syntax

> UTC_TIMESTAMP()

Examples

> SELECT UTC_TIMESTAMP();
+---------------------+
| utc_timestamp()     |
+---------------------+
| 2022-06-22 22:31:13 |
+---------------------+