This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-21. For the latest, interactive version please visit https://mariadb.com/kb/.

UTC_TIMESTAMP

Sintassi

UTC_TIMESTAMP, UTC_TIMESTAMP()

Spiegazione

Restituisce la data e l'orario UTC correnti nel formato 'YYYY-MM-DD HH:MM:SS' o YYYYMMDDHHMMSS.uuuuuu, a seconda che la funzione sia usata in un contesto stringa o numerico.

Esempi

MariaDB [(none)]> SELECT UTC_TIMESTAMP(), UTC_TIMESTAMP() + 0;
+---------------------+-----------------------+
| UTC_TIMESTAMP()     | UTC_TIMESTAMP() + 0   |
+---------------------+-----------------------+
| 2010-03-27 17:33:16 | 20100327173316.000000 |
+---------------------+-----------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> 

Vedi anche

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.