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

  1. mysql> select utc_timestamp(),utc_timestamp() + 1;
  2. +---------------------+---------------------+
  3. | utc_timestamp() | utc_timestamp() + 1 |
  4. +---------------------+---------------------+
  5. | 2019-07-10 12:31:18 | 20190710123119 |
  6. +---------------------+---------------------+
  7. ## keyword
  8. UTC_TIMESTAMP,UTC,TIMESTAMP