Files
doris/docs/en/sql-reference/sql-functions/date-time-functions/utc_timestamp.md
ZhangYu0123 1d9b3aeee7 [Doc] Repair document format (#4336)
The error format '##keyword' in a lot of docs. This pr is to repair document format. #4335
2020-08-13 23:39:41 +08:00

1.4 KiB

title, language
title language
utc_timestamp en

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 |
+---------------------+---------------------+
## keyword
UTC_TIMESTAMP,UTC,TIMESTAMP