Re: Date_Calc::weekOfYear() bug?
| From: | Ondrej Jombik | Date: | Tue, 26 Nov 2002 12:59:17 +0000 |
| Subject: | Re: Date_Calc::weekOfYear() bug? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2838@lists.php.net to get a copy of this message | ||
> > > I think there indeed a bug in the calculation of the ISO-8601 week
> > > number of the year. The following simple code:
> You are right, there is a bug in weekofyear method, see
> http://bugs.php.net/bug.php?id=19788 for further details.
Well, we need to fix this. I have such good code, but that works
only for "present" dates:
http://nepto.sk/projects/platon/cvs.php/phpPlatonLib/Date_Week_Magic/Week_Magic.php?rev=1.4&content-type=text/x-cvsweb-markup
I suppose, that Date_Calc' goal is to be used also with very past
and very present dates. I do not know if Jesus' code will fit this need.
=Nepto=
____________________________________________________________________________
Ondrej 'Nepto' Jombik, http://www.nepto.sk/
nepto@atomicpile.sk