|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-06-07 14:11 UTC] mute at snip dot net
Just compiled 3.0.9, had heard of some possible issues with date() but was doing some stuff on my own.
The following:
echo date("F",mktime(0,0,0,1,0,0));
Returns:
"December"
When it should return "January"
Upon looking at the manual online i saw the example of:
$epoch = date ("D F dS...",mktime(0,0,0,0,0,0));
echo $epoch;
Which is supposed to return: "Wed December 31st 1969..."
On my system it returns: "Wed December 31st..."
Sorry if this has been mentioned im new to all of this :)
-kyle
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 09:00:02 2026 UTC |
echo date("F",mktime(0,0,0,1,0,0)); day passed should not be 0, but rather in the range 1-31