Weird results for 2 lines of damn code

From: Date: Fri, 17 Oct 2003 01:11:37 +0000
Subject: Weird results for 2 lines of damn code
Groups: php.general 
Request: Send a blank email to php-general+get-166380@lists.php.net to get a copy of this message
Hi everyone, This "very simple" program is driving me nuts, heres what i am doing: 1.making a timestamp with the current time. 2.reading from the timestamp and trying to "render" the date again $ryan=strtotime ("now"); echo $ryan."<br>"; echo strftime( "%G-%m-%a %H:%M:%S", $ryan)."<br>"; This is the result: -10-Fri 02:29:33 the month part,friday part and the time is correct....why no year? Where am i going wrong? Cheers, -Ryan

« previous php.general (#166380) next »