So, we have the following code:
date("Ymd",time()+60*365*24*60*60);
The idea is that I have to make a forecast, and I have a result in the number of days that I have to add to the current date. The forecast is designed for the year 2060 or will pass it ... in a 64-bit environment that works, but not so much on a 32-bit one :)
any ideas?
10x
LE:
Ok, so I tried:
$date = new DateTime(); // for PHP 5.3 $date->add(new DateInterval('P20000D')); // for PHP 5.2 $date->modify('+20000day'); echo $date->format('Ym-d') . "\n";
and he works
source share