Date: 06/07/99
- Next message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Previous message: Jim Winstead: "Re: [PHP-DEV] Bug #1502: New code for calculating Easter date?"
- Next in thread: Paul Andersen: "Re: [PHP-DEV] date() stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Previous message: Jim Winstead: "Re: [PHP-DEV] Bug #1502: New code for calculating Easter date?"
- Next in thread: Paul Andersen: "Re: [PHP-DEV] date() stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

