i have the following snip of code that shows an expiration date. this code, depending on the values of $begin and $duration, has been returning some dates WAY in the past. My guess is that this is because of the maximum integer values in php.
<?=date("F j, Y, \a\t g:i a", $begin + $duration) ?>
any value up to 2147483647 is ok but anything higher results in negative values being fed to the date() function which results in dates before 1970.
how can i get around the maximum integer value for doing calculations? If i making them floating point numbers might that work?
Also, i'm guessing the date function may or may not work if fed a number larger than MAXINT.
any help would be appreciated. seems kinda short sighted to me to create a date() function that can only handle dates within about 75 years of 1970.