Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
UTC_ TIMESTAMP
On this page
The UTC_ function returns the current time, in the UTC time zone.
Syntax
UTC_TIMESTAMP()Return Type
Datetime object.
Examples
You can specify a precision of 0 (the default) or 6 digits for the fraction of seconds.
SELECT UTC_TIMESTAMP();
+---------------------+
| UTC_TIMESTAMP() |
+---------------------+
| 2022-01-10 13:10:06 |
+---------------------+SELECT UTC_TIMESTAMP(0);
+---------------------+
| UTC_TIMESTAMP(0) |
+---------------------+
| 2022-01-10 13:10:09 |
+---------------------+
1 row in set (0.084 sec)SELECT UTC_TIMESTAMP(6);
+----------------------------+
| UTC_TIMESTAMP(6) |
+----------------------------+
| 2022-01-10 13:10:12.113996 |
+----------------------------+
1 row in set (0.001 sec)Related Topics
Last modified: