Re: Calendar

From: Date: Sat, 17 Apr 2004 11:55:00 +0000
Subject: Re: Calendar
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11932@lists.php.net to get a copy of this message
On Sat, 17 Apr 2004 13:18:13 +0200, Lukas Smith wrote: > While I will probably run my own tests eventually I just wanted to > ask this list about their experience with the Calendar package. I > am especially interested in how it performs in a full fledged > Calendar app both in useability, performance and accuracy. I guess > its accuracy is determined by the Date's packages accuracy. the accuracy depends on a) date() and mktime() native php implementations for the UnixTS engine b) PEAR::Date for the PearDate engine Anyway, while developing the PearDate engine we discovered a couple of remaining bugs in Pear::Date (fixed in the latest Date release), and the testsuite didn't show other bugs, so I think now Pear::Date is quite trustworthy. Performance-wise, I'd say Harry has written an excellent implementation. By abstracting each date component (years, months, ..., seconds), the php engine has to parse only the pieces you really need, and if you don't need lower-level date components, the class is designed not to calculate them automatically (so no time is wasted on unneeded things) [1] Of course you can use Cache_Lite to reach even higher speed, and IIRC Harry wanted to do some more work on the decorator classes, to make caching the date-related part (as opposed to date calculations + user-land decorator objects as an atomic block) easier. HTH Lorenzo [1] http://pear.php.net/manual/en/package.datetime.calendar.faq.php#AEN20870

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