On Thu, 7 Jul 2005 23:10:16 +0200 (CEST)
[EMAIL PROTECTED] (Derick Rethans) wrote:

> Hei,
> 
> I wrote up a little document about how I want to implement the
> date and timezone "class"es - although I'm not planning any OO
> methods. I'm just wrapping the timelib_time and timelib_tzinfo
> structures in an object. Let me know what you think.

The functions related to the timezone (fetching, offset,...) sounds
good to me.

For the rest, I already did it since one and half year for the base.

The other are only duplicated with current function. This is maybe
useless. The worst being to rely on strtotime to manipulate date,
this is maybe human readable (understandable is another
question ;), but it is slooow, and the best way to hell for non
english application.

When we talked about a common object or resource in PHP, based on
what you did not read in pecl/date, it was about real transparency
throug methods able to work with date/time values.

I suggest to make this enhancement in pecl/date. All the base is
already here.

This is anyway a task post 5.1, for now your implementation has to
be bullet proofed until that (thinking about timezone and some
function like week number or other sources of annoyance).

Regards,

--Pierre

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to