top of page
MySQL:
UTC_TIMESTAMP
Syntax:
UTC_TIMESTAMP, UTC_TIMESTAMP([fsp])
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.
If the fsp argument is given to specify a fractional seconds precision
from 0 to 6, the return value includes a fractional seconds part of
that many digits.
URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html
Example
mysql> SELECT UTC_TIMESTAMP(), UTC_TIMESTAMP() + 0;
-> '2003-08-14 18:08:04', 20030814180804.000000
bottom of page