Topic: Negative timestamps
Is it just me or does PHP disallow negative timestamps (referring to time before the Unix Epoch) in some functions, like strtotime? When I first started running into this problem, I figured it was my host's PHP installation not allowing negative timestamps whatsoever, but apparently this isn't the case.
On my host, this code prints a nicely formatted, correct date :
echo date("m/d/Y", -884908800);
But this prints -1 on dates previous to January 1, 1970:
$month = 'December';
$day = 17;
$year = 1941;
echo strtotime($month . ' ' . $day . ', ' . $year);
It's really annoying me that I can't work with dates in some functions. What gives?
PHP 4.4.2