The MySQL LOCALTIME function is used to get the current date and time. The various versions of MySQL supports the LOCALTIME function, namely, MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0 and MySQL 3.23.
mysql> SELECT LOCALTIME();
The current date and time has been returned as the result.
mysql> SELECT LOCALTIME() + 2;
The date and time value which is 2 seconds after the current time has been returned as the result.