date problem.
Posted: Tue May 13, 2003 5:55 pm
Here is my code...
and output of above code...
The problem is that my computer's clock is set to May 13, todays date! Im running PHP 4.2.3 with Apache on a regular Windows 2000 desktop. I was trying to learn what I could do with a UNIX time stamp, and don't undersand why this is showing the wrong date.
Any ideas?
Code: Select all
<?PHP
echo time() . '<br>';
echo mktime() . '<br>';
echo date('F nS, Y') . '<br>';
echo gmdate('F nS, Y') . '<br>';
echo gmdate('F nS, Y', time()) . '<br>';
echo date('F nS, Y', '1234567890');
?>Code: Select all
1052866374
1052866374
May 5th, 2003
May 5th, 2003
May 5th, 2003
February 2th, 2009Any ideas?