Re: date() stuff
| From: | Paul Andersen | Date: | Tue, 08 Jun 1999 01:20:52 +0000 |
| Subject: | Re: date() stuff | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6690@lists.php.net to get a copy of this message | ||
I think the way the function is now makes the most sense.
Regardless history tells us that even if we didn't like the way the
function worked we can't change it now -- so docs it is.
(Fixed in CVS)
On Mon, 7 Jun 1999, 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?
>
>
> __________________________________________________________________
> Colin Viebrock easyDNS Technologies
> ... be the master of your domain
>
> http://www.easyDNS.com
>
>
> --
> PHP Development Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
---
Paul Andersen (InterNIC:PA137) paul@egate.net
System Administrator T: +1 (416) 447-8505x23
E-Gate Communications Inc. F: +1 (416) 447-6447
Toronto, Ontario P: www.egate.net/pagepaul