Unix time conversion for MySQL
Unix time is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1st January 1970. Unix time is a single signed integer number with which the driver time-stamps the Database records.
To convert Unix time into a readable date format in MySQL add the following query statement: FROM_UNIXTIME(TIMESTAMP/1000). This statement results in a timestamp with this syntax: YYYY-MM-DD HH:MM:SS.ssss