Re: Weird results for 2 lines of damn code

From: Date: Fri, 17 Oct 2003 01:15:50 +0000
Subject: Re: Weird results for 2 lines of damn code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166381@lists.php.net to get a copy of this message
Replace %G _with_ %Y -- Jon Kriek http://phpfreaks.com "Ryan A" <ryan@coinpass.com> wrote in message news:00ef01c3944b$9d078680$f081aa51@l2zcaxu7emppqh... > 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 (#166381) next »