[FX.php List] Even stranger date math...

Troy Meyers tcmeyers at troymeyers.com
Sun Sep 30 14:22:31 MDT 2007


Because of when daylight savings time ends?

-Troy


> OK, so I decided to use a WHILE loop, and the results are just as  
> strange:
> 
> <?php
> 
> $d1 = "10/28/2007";
> 
> $thetime = strtotime($d1);
> 
> $x = 2;
> 
> while ($x < 43){
> 
> 	$thetime = $thetime + 86400;
> 
> 	$d[$x] = date('m/d/Y',$thetime);
> 
> 	echo $d[$x]."<br>";
> 
> 	$x++;
> 
> }
> 
> ?>
> 
> Check it out... why does this not work right?
> 
> _______________________________________________
> 
> FX.php_List mailing list
> 
> FX.php_List at mail.iviking.org
> 
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list