NOW returns the current date and time. The return value will be expressed as 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS.uuuuuu, depending on whether the function is used in a string or numeric context. The value is expressed in the current time zone.
56
NOW returns the current date and time. The return value will be expressed as 'YYYY-MM-DD HH:MM:SS:mmmmmm' or YYYYMMDDHHMMSS.uuuuuu, depending on whether the function is used in a string or numeric context. The value is expressed in the current time zone.
57
57
58
58
.. code-block:: mysql
59
59
60
60
SELECT NOW();
61
-> '2011-02-15 13:40:06'
61
-> '2011-02-15 13:40:06:002203'
62
62
SELECT NOW() + 0;
63
-> 20110215134006.000000
63
-> 20110215134006.002203
64
64
65
65
NOW returns a constant time that indicates the time at which the statement began to execute.