Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64228 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84622 invoked from network); 10 Dec 2012 13:39:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2012 13:39:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=drgomesp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=drgomesp@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: drgomesp@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:49598] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/C4-60401-BF5E5C05 for ; Mon, 10 Dec 2012 08:39:08 -0500 Received: by mail-ee0-f42.google.com with SMTP id c41so1648258eek.29 for ; Mon, 10 Dec 2012 05:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=0Fk9woIETRtfW+jfMA52KfZYp1dQGh983jQJyt9f4o4=; b=y02iOpUlx8iiBdR3L0bVTZB723LmiGkWvVApFqDHUF5osNjVeXKpggHkpyNpT0aM+d VSt/KVJlXjE1iYJBBs2RKhhCA2KnmunI1l8HaczbYfo6ja1qIUhegTOgkMunMaRYwrhi RVvaxN8v2O4G9xPqzeXVyPZbI8ABndzDwkoV+rc+mK79b/dE8YTzpK3Pr3CQF0WYaqmX km+jgeZOYixMcDbh+nT59Ufa3ZduqgO5Y3nOlkIRu4Ec+WZYVt8Ij7l3hxxAyWH+UZ1m 1U8r5dZKNXMPFCKJRlF4kmTiZ01uLEuFnbsryMzJTor4AwCdjnkWFyEiVgdtThx7+W9n gV/w== Received: by 10.14.225.72 with SMTP id y48mr49349606eep.46.1355146744990; Mon, 10 Dec 2012 05:39:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.211.73 with HTTP; Mon, 10 Dec 2012 05:38:44 -0800 (PST) In-Reply-To: References: <4ED7146272E04A47B986ED49E771E347BB362B68DE@Ikarus.ameusgmbh.intern> <4ED7146272E04A47B986ED49E771E347BB362B68E4@Ikarus.ameusgmbh.intern> Date: Mon, 10 Dec 2012 11:38:44 -0200 Message-ID: To: Marco Pivetta Cc: Christian Stoller , Sebastian Krebs , Nikita Nefedov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b66fc195a8b6a04d07fb04a Subject: Re: [PHP-DEV] Improve DateTime Class From: drgomesp@gmail.com (Daniel Ribeiro Gomes) --047d7b66fc195a8b6a04d07fb04a Content-Type: text/plain; charset=ISO-8859-1 I agree with Christian in the sense that the readability gets compromised. But I also think that a custom DateTime class should solve the problem properly, since readability is not a general requirement. My solution for that problem would be to create that extension and have those nice methods on it, but not to modify the core, though. Like Nikita well said, DateTime object is not an object we can simply dive into modifying it without having some really bad side effects. Daniel Ribeiro Gomes Pereira Twitter | Facebook | LinkedIn iPhone: +55 (48) 9111-0931 2012/12/10 Marco Pivetta > It's just a matter of getting used to it IMO. I am not sure if you can > simply modify its public properties, but if that's the case, that should > handle your problem. > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > --047d7b66fc195a8b6a04d07fb04a--