On Friday 08 July 2005 02:17, Pierre-Alain Joye wrote:
[snip]
> This is what I talk about when I say a common Date object in php.
> Derick exported the headers on my demand, this is a good first step.

I agree that it would be a great idea to have a common Date object in PHP. And 
since most of it is already implemeted by the new timelib and the existing 
object code in PECL/date I see no reason not merge that in core date module.

I would love to be able to do something like this:

$d = new Date(time());
$d->month++;
$d->print("Y-m-d"); // date() equiv.

And implement all other datetime functions in similar matter.

Edin

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

Reply via email to