Re: Date_Calc::weekOfYear() bug?

From: Date: Tue, 26 Nov 2002 13:30:46 +0000
Subject: Re: Date_Calc::weekOfYear() bug?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2839@lists.php.net to get a copy of this message
On Tue, 26 Nov 2002 13:59:17 +0100 (CET) Ondrej Jombik <nepto@pobox.sk> wrote: > > > > > 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. I can fix it as soon as I get my damned f*** home connection :), it s mainly based on the perpetual calendars (this makes possible to work with large range of dates), infos @: http://mathforum.org/library/drmath/view/59233.html > 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/W >eek_Magic.php?rev=1.4&content-type=text/x-cvsweb-markup ::Validate method should use simply checkdate php function :-) And you are right, we cannot use this method because it is based on unixtime. > 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. Exactly, that s why we cannot use php time functions. pa

« previous php.pear.general (#2839) next »