#22782 [Com]: mktime funcktion fail

From: Date: Wed, 19 Mar 2003 10:12:34 +0000
Subject: #22782 [Com]: mktime funcktion fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35918@lists.php.net to get a copy of this message
ID: 22782 Comment by: patrick at sorrynospam dot org Reported By: ameoba32 at riscom dot net Status: Open Bug Type: Date/time related Operating System: W2K PHP Version: 4.3.1 New Comment: 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"; } Previous Comments: ------------------------------------------------------------------------ [2003-03-19 02:57:20] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22782&edit=1

« previous php.bugs (#35918) next »