SoFunction
Updated on 2025-03-03

Time format issues between PHP4 and PHP5

PHP5 used on your own computer.

PHP4 on the server.

Time on your own machine, 2008-2-14 14:56:29
Write the program and pass it on, and turn it into a string of numbers. 1202972189

Access.. field default value for database Now()
Solution:
There is no problem with this. This number is Unix timestamp. It represents the number of seconds from 1970-1-1 to the present. It generally needs to be formatted and displayed.

date('Y-m-d',1202972189)
The result is 2008-02-14