Re: date() stuff

From: Date: Mon, 07 Jun 1999 21:56:03 +0000
Subject: Re: date() stuff
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-6682@lists.php.net to get a copy of this message
Colin Viebrock wrote: > Obviously I've got too much time on my hands ... ;) > > Just noticed the following "bug": date('z') is supposed to return > the day of the year. The docs say 1-366, but the function > actually returns 0-365. i.e. > > echo date('z', mktime(0,0,0,1,4,1999)); > > returns "3", not "4" as expected. > > Do we change the docs, or the function? Change the function, I'd say. -Andrey "Freedom comes when you learn to let go. Creation comes when you learn to say no." -madonna

« previous php.dev (#6682) next »