I\'m in a dilemma about saving date and time values in MySQL\'s TIMESTAMP format vs in a custom UNSIGNED INT format. The main considerations here are speed of retrieval, app
Arguments for TIMESTAMP
DEFAULT CURRENT_TIMESTAMP or ON UPDATE CURRENT_TIMESTAMP (one column per table only until MySQL 5.6.5)FROM_UNIXTIME() function - it will make it easier to write queries that can use indexesIn PHP
>> date('Y-m-d h:i:s',4294967295);
'1969-12-31 11:59:59'
so the range is in fact the same
When UNIX_TIMESTAMP() is used on a TIMESTAMP column, the function returns the internal timestamp value directly, with no implicit “string-to-Unix-timestamp” conversion