The MySql timestamp data type can be saved as a number in the format YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD or YYMMDD.
On Unix and POSIX-compatible systems, time_t is usually an integer that represents the number of seconds since the start of the Unix era: midnight UTC on January 1, 1970.
In MySQL, you can use UNIX_TIMESTAMP () and FROM_UNIXTIME () converts functions between TIMESTAMP values ββand Unix timestamp values.
Example query: SELECT Unix_Timestamp(Date_Entered) FROM Foo;
source share