|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-19 02:57 UTC] ameoba32 at riscom dot net
echo date("H:i:s d-m-Y", mktime(0,0,0,4,364,2002))."\n";
echo date("H:i:s d-m-Y", mktime(1,0,0,4,364,2002))."\n";
prints this result:
01:00:00 30-03-2003
01:00:00 30-03-2003
364 is magic day number :) all other days works perfect.
thank you.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 11 16:00:02 2026 UTC |
that seems to be correct though. remember that: 333: 01:00:00 27-02-2003 334: 01:00:00 28-02-2003 !!!! 335: 01:00:00 01-03-2003 see: for($i=1; $i < 400; $i++){ echo date("$i: H:i:s d-m-Y", mktime(1,0,0,4,$i,2002))."<BR>\n"; }