localtime,localtimestamp

description

Syntax

DATETIME localtime() DATETIME localtimestamp()

Get the current time and return it in Datetime type.

Example

1. mysql> select localtime();
2. +---------------------+
3. | localtime()         |
4. +---------------------+
5. | 2022-09-22 17:30:23 |
6. +---------------------+

8. mysql> select localtimestamp();
9. +---------------------+
10. | localtimestamp()    |
11. +---------------------+
12. | 2022-09-22 17:30:29 |
13. +---------------------+

keywords

1. localtime,localtimestamp