Date Package

From: Date: Wed, 30 Apr 2003 23:20:49 +0000
Subject: Date Package
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15755@lists.php.net to get a copy of this message
Hi, I'm just wondering what the procedure is for submitting 'tweaks' that I think are reasonable to at least be considered for the Date package. I have modified the Date_calc class to be able to handle the run-time allocation of the first-day-of-the-week rather than it being hard-coded in a constant. I also found the Date::compare method woefully inefficient because it always converts the timezones of the dates before comparing them. This was taking some hundreds of milli-seconds for each compare operation so you can imagine what happened if even one compare call was made in a loop. I added a boolean switch to optionally (and in my case default) turn off the timezone comparison. The computation time dropped so that it was not registering in the milliseconds. I also have some other minor things but they can be discussed down the track. Regards, Andrew Eddie Senior Systems Integrator Toowoomba City Council, Australia

« previous php.pear.dev (#15755) next »