|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-25 08:28 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 20:00:01 2025 UTC |
Description: ------------ Reproduce code: --------------- <? $f_tm=1080075600; //3-24-2004 for($i=0; $i<7; $i++) { $arr_tm[]=$f_tm; $f_tm=mktime(0, 0, 0, date("n",$f_tm), (date("j",$f_tm)+1), date("Y",$f_tm)); } foreach($arr_tm as $tm) { echo $tm." ".date("Y",$tm)."-".date("m",$tm)."-".date("d",$tm)."<br>"; } ?> Expected result: ---------------- HTTP/1.1 200 OK Date: Tue, 24 Aug 2004 19:44:04 GMT Server: Apache/1.3.31 (Unix) mod_accounting/0.5l mod_ssl/2.8.18 OpenSSL/0.9.7d mod_deflate/1.0.21 X-Powered-By: PHP/4.3.5 Connection: close Content-Type: text/html; charset=windows-1251 1048453200 2003-03-24 1048539600 2003-03-25 1048626000 2003-03-26 1048712400 2003-03-27 1048798800 2003-03-28 1048885200 2003-03-29 -7262 1970-01-01 Actual result: --------------