Re: [PHP-DEV] date() stuff From: Andrey Zmievski (zmievski <email protected>)
Date: 06/07/99

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

-- 
PHP Development Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>