Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56500 invoked by uid 1010); 8 Jul 2005 20:06:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56484 invoked from network); 8 Jul 2005 20:06:25 -0000 Received: from unknown (HELO marcus-boerger.de) (127.0.0.1) by localhost with SMTP; 8 Jul 2005 20:06:25 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:36215] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 5A/38-59389-0CCDEC24 for ; Fri, 08 Jul 2005 16:06:25 -0400 Received: from baumbart.mbo (dsl-082-083-235-012.arcor-ip.net [82.83.235.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 6C63235C270; Fri, 8 Jul 2005 22:22:08 +0200 (CEST) Date: Fri, 8 Jul 2005 22:06:35 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1521669215.20050708220635@marcus-boerger.de> To: Derick Rethans Cc: Edin Kadribasic , internals@lists.php.net, Pierre-Alain Joye In-Reply-To: References: <5.1.0.14.2.20050707164528.02833cc0@localhost> <20050708021723.46bb4484.pierre@dotgeek.org> <200507081330.46764.edink@emini.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] date/timezone classes From: mail@marcus-boerger.de (Marcus Boerger) Hello Derick, Friday, July 8, 2005, 2:31:14 PM, you wrote: > On Fri, 8 Jul 2005, Edin Kadribasic wrote: >> I would love to be able to do something like this: >> >> $d = new Date(time()); >> $d->month++; >> $d->print("Y-m-d"); // date() equiv. > Adding methods is no problem, that's what you get for free anyway, I > just think that $d->month is too much magic, and not reproducable in non > OO. I wouldn't care for non oo here. And instead pretty much appreciate such stuff since it'd heavliy simplify working on calendar tools and still have nice readable code. -- Best regards, Marcus mailto:mail@marcus-boerger.de