UNIX_TIMESTAMP([date])

Description: Returns the number of seconds since 1 January 1970 at 00:00:00 GMT, of date (a DATE or DATETIME type). If date is omitted, the current date and time are used.

Examples:

  • UNIX_TIMESTAMP('2002-01-05') returns 1010188800.

  • UNIX_TIMESTAMP() returns 1019582548.

See also: NOW(), FROM_UNIXTIME()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.160.181