LOCALTIMESTAMP()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
See NOW().
USAGE
LOCALTIMESTAMP([precision])
Argument Name | Description |
---|---|
| Optional. The number of desired decimal digits (0-6). Default: 0 |
EXAMPLES
SELECT LOCALTIMESTAMP();
+---------------------+
| LOCALTIMESTAMP() |
+---------------------+
| 2020-10-13 21:04:32 |
+---------------------+
SELECT LOCALTIMESTAMP()+0;
+---------------------+
| LOCALTIMESTAMP()+0 |
+---------------------+
| 20201013210432.0000 |
+---------------------+
SELECT LOCALTIMESTAMP(6);
+----------------------------+
| LOCALTIMESTAMP(6) |
+----------------------------+
| 2020-10-13 21:04:32.489851 |
+----------------------------+