NYCPHP Meetup

NYPHP.org

[nycphp-talk] mktime()

Ken Robinson kenrbnsn at rbnsn.com
Tue Jan 10 11:13:41 EST 2006


Quoting Craig Thomas <craig at juxtadigital.com>:

> Hi all,
>
> Am I nuts or does this look odd:
>
> <?php
>
> for($i=1971;$i<=2099;$i++){

PHP time breaks after 2037 (or is it 2031) when the number of seconds since
1/1/1970 overflows the integer that's holding the number.

Ken




More information about the talk mailing list