php-developer-list | 2001041
Date: 04/05/01
- Next message: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Previous message: ray <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180: date arithmetic gives wrong result"
- Next in thread: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Maybe reply: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 10180
Updated by: ab
Reported By: ray <email protected>
Status: Open
Bug Type: Date/time related
Assigned To:
Comments:
daylight saving time started on 3.26.2001 so behaviour is correct
Previous Comments:
---------------------------------------------------------------------------
[2001-04-05 05:44:20] ray <email protected>
<?
$birthdate = mktime(0, 0, 0, 1, 1, 2001);
// should give 82 days old - correct
$CurDate = mktime(0,0,0,3,24,2001);
printf("<BR>".date("z", $CurDate - $birthdate ) ." days old");
// should give 83 days old - correct
$CurDate = mktime(0,0,0,3,25,2001);
printf("<BR>".date("z", $CurDate - $birthdate ) ." days old");
// should give 84 days old - instead gives 83
$CurDate = mktime(0,0,0,3,26,2001);
printf("<BR>".date("z", $CurDate - $birthdate ) ." days old");
// should give 85 days old - instead gives 84
$CurDate = mktime(0,0,0,3,27,2001);
printf("<BR>".date("z", $CurDate - $birthdate ) ." days old");
?>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10180&edit=2
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Previous message: ray <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180: date arithmetic gives wrong result"
- Next in thread: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Maybe reply: hholzgra <email protected>: "[PHP-DEV] PHP 4.0 Bug #10180 Updated: date arithmetic gives wrong result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

