Re: strtotime strangeness

From: Date: Sun, 04 Oct 2009 19:06:51 +0000
Subject: Re: strtotime strangeness
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-298578@lists.php.net to get a copy of this message
----- Original Message ---- > From: Floyd Resler <fresler@adex-intl.com> > To: Andrea Giammarchi <an_red@hotmail.com> > Cc: php-general@lists.php.net > Sent: Sun, October 4, 2009 12:01:30 PM > Subject: Re: [PHP] strtotime strangeness > > I couldn't find anything in the php.ini file to account for this. I am running > PHP 5.2.10. I've never actually updated it myself so the software updater > updated it at some point. I did a little test and found out that > date(:Y",$timestamp) returns 0000. However, date("y",$timestamp) returns the > two digit year properly. So it seems there is an issue with the four digit > year. > > Thanks! > Floyd > <snip> i hope :Y" is a typo in the email and not in your code.

« previous php.general (#298578) next »