A
Anonymous
Guest
The following code shows that strtotime appears to work up to 2075 but not from 2076 onwards. I find it hard to believe. Sorry if I am missing something obvious.
for ($i = 2000; $i <= 2100; $i++)
{
$PWD_S = $i."0331";
$PWD_E = strtotime($PWD_S);
echo "<p>strtotime($PWD_S): $PWD_E</p>";
}
reults in:-
strtotime(20740331): 2147483647
strtotime(20750331): 2147483647
strtotime(20760331): -1
strtotime(20770331): -1
Can anyone explain my problem please.
for ($i = 2000; $i <= 2100; $i++)
{
$PWD_S = $i."0331";
$PWD_E = strtotime($PWD_S);
echo "<p>strtotime($PWD_S): $PWD_E</p>";
}
reults in:-
strtotime(20740331): 2147483647
strtotime(20750331): 2147483647
strtotime(20760331): -1
strtotime(20770331): -1
Can anyone explain my problem please.