Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89287 invoked by uid 1010); 8 Jul 2005 11:30:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89272 invoked from network); 8 Jul 2005 11:30:51 -0000 Received: from unknown (HELO emini.dk) (127.0.0.1) by localhost with SMTP; 8 Jul 2005 11:30:51 -0000 X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from ([192.38.9.232:8071] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 2D/C8-59389-AE36EC24 for ; Fri, 08 Jul 2005 07:30:50 -0400 Received: from localhost (localhost [127.0.0.1]) by gw2.emini.dk (Postfix) with ESMTP id EC2E86FEDA; Fri, 8 Jul 2005 13:30:46 +0200 (CEST) Organization: Emini A/S To: internals@lists.php.net Date: Fri, 8 Jul 2005 13:30:46 +0200 User-Agent: KMail/1.6.2 Cc: Pierre-Alain Joye References: <5.1.0.14.2.20050707164528.02833cc0@localhost> <20050708021723.46bb4484.pierre@dotgeek.org> In-Reply-To: <20050708021723.46bb4484.pierre@dotgeek.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: <200507081330.46764.edink@emini.dk> Subject: Re: [PHP-DEV] date/timezone classes From: edink@emini.dk (Edin Kadribasic) 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