Jump to: navigation, search

Mysql LOCALTIME

From w3cyberlearnings

Contents

MySQL LOCALTIME Function

This function returns the current time, and it synonyms for NOW() function.

Syntax LOCALTIME

LOCALTIME()

Example 1

mysql> SELECT LOCALTIME();
+---------------------+
| LOCALTIME()         |
+---------------------+
| 2012-05-25 22:55:53 | 
+---------------------+
1 row in set (0.00 sec)


Example 2


mysql> SELECT NOW();
+---------------------+
| NOW()               |
+---------------------+
| 2012-05-25 22:55:57 | 
+---------------------+
1 row in set (0.00 sec)



Related Links



Navigation
Web
SQL
MISC
References