且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么php在php中返回负值?

更新时间:2023-11-26 16:41:22

它与Unix Epoch有关。

It's to do with the Unix Epoch.

请参阅: date() time()

See: date() and time()

时间戳的有效范围通常是从Fri,13 Dec 1901 20:45:54 GMT到Tue,1938年01月19日03:14:07 GMT。 (这些是对应于32位有符号整数的最小值和最大值的日期)。但是,在PHP 5.1.0之前,某些系统的这个范围从01-01-1970到19-01-2038

The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems