New Module - CDate
| From: | Tim Ansell | Date: | Wed, 07 Jun 2006 02:52:51 +0000 |
| Subject: | New Module - CDate | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-3859@lists.php.net to get a copy of this message | ||
Hello,
I am in the process of writing a PECL module which is designed to be
function compatible with the PEAR Date module. I hope to make this
module a drop in replacement so anyone who was using the PEAR Date
module can just use the PECL Date module.
This module is similar in some ways to the current date_time module.
However it differs because of the following,
* Compatible with the PEAR Date, Date_Span and Date_TimeZone
* Uses a totally different method for storing and changing Dates
* Being actively developed (last commit date on date_time is 16 months
ago)
The reason I am doing this is because I have recently started using a
lot of PEAR Date class (ie using about 1 million of them) and it is
extremely slow.
So far I have successfully implemented most of the
* Date class (Date.php - 80% done)
* Date_Span class (Date_Span.php - 85% done)
* Date_TimeZone class (Date_TimeZone.php - 95% done)
I have also have
* Date_Time class which is implemented in PHP and PECL
I won't be implementing the Date_Calc class because I personally see no
reason to use it directly.
I have named the project "CDate" (as it's a C implementation of the Date
class) and would like to release it via PECL.
Improvements in this package, such as extra documentation and tests can
also be used to improve the PEAR Date class.
Things I hope to do in the future,
* Use timezonedb instead of own TimeZone stuff copied from
Date_TimeZone.php
* Have unit tests for all functionality (Which would mean that PEAR
Date class will also have the similar functionality - currently I have
almost complete coverage for Date_TimeZone and Date_Span).
Thanks for your time and help.
Tim Ansell