PHP 4.0 Bug #6894 Updated: strftime and 2000-10-29

From: Date: Mon, 30 Oct 2000 16:17:35 +0000
Subject: PHP 4.0 Bug #6894 Updated: strftime and 2000-10-29
Groups: php.dev 
Request: Send a blank email to php-dev+get-36435@lists.php.net to get a copy of this message
ID: 6894 Updated by: stas Reported By: martin.m.luethi@ascom.ch Status: Closed Bug Type: Date/time related Assigned To: Comments: Again and again... Not every day has 60*60*24 seconds, when daylight settings are in effect. On the border of daylight settings day can have one hour more or one hour less. Previous Comments: --------------------------------------------------------------------------- [2000-09-26 23:03:58] martin.m.luethi@ascom.ch hi, i use following php script: $actualday = mktime(0,0,0); for ($i = 0; $i < 60; $i++) { echo strftime("%d.%m.%Y", $actualday)."<br>"; $actualday += 60*60*24; //= 1 day } it just prints out a list with some dates, but why does the date 2000-10-29 (or 2001-10-28 ...) appears twice? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6894

« previous php.dev (#36435) next »