The timestamp to dates problem for PHP >= 5.1 -


I can say that I am not a PHP programmer. I'm reading on it:

Valid range of a timestamp is normally available on Friday, December 13, 1901 20:45:54 GMT, Wed, 19 January 2038 03:14:07 GMT (These are dates which correspond to the minimum and maximum values ​​for the 32-bit signed integer). However, prior to PHP 5.1.0, this limit was limited to some systems (such as Windows) from 1-1-19-19 70 to 19-01-2038.

1070-based-time stamps in my database How can I retrieve them with PHP> = 5.1?

I understand that your timestamp will work properly. The way I read it, before PHP 5.1.0, the negative timestamp was not allowed. The timestamp representing a date before 1970 is a negative 32-bit integer.

In other words, timestamps pre- or PPP 5.1.0 are all relatives of post Unix era, i.e., 1 971-01-01.


Comments