Re: date/timezone classes
| From: | Edin Kadribasic | Date: | Fri, 08 Jul 2005 11:30:46 +0000 |
| Subject: | Re: date/timezone classes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17193@lists.php.net to get a copy of this message | ||
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