[TriLUG] OT?: php anomaly

OlsonE at aosa.army.mil OlsonE at aosa.army.mil
Wed Aug 16 15:57:34 EDT 2006


I'll run this through php when I get home ...I'm in Windows @ work
...and you know the government ...I'm also not allowed to install
anything. =/ 

-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On
Behalf Of stan briggs
Sent: Wednesday, August 16, 2006 3:43 PM
To: 'Triangle Linux Users Group discussion list'
Subject: [TriLUG] OT?: php anomaly

all,

can anyone help me understand why it is that on or about 10-29 of each
year i can't get php to increment the unix date? here is the php code
that i'm
using:
<?
$CurrentDate = "2006-10-24";
$EndDate = "2006-11-15";
while ( $CurrentDate <= $EndDate ) {
	$CurrentUnixDate = strtotime($CurrentDate); 
	$ShortDate = date("m-d",$CurrentUnixDate);
	echo "$ShortDate($CurrentUnixDate)[$CurrentDate]\n";
	$CurrentUnixDate = $CurrentUnixDate + 86400 ;
	$CurrentDate = date("Y-m-d",$CurrentUnixDate); } ?>

this code stops incrementing on 10/29. note that if you change the year
to last year or to next year you get the same behavior on a slightly
different date.

someone impress me,
stan

Stan B. Briggs
+1-919-461-1096

-- 
TriLUG mailing list        :
http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/ TriLUG Member
Services FAQ : http://members.trilug.org/services_faq/



More information about the TriLUG mailing list