Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55682 invoked from network); 3 Sep 2012 12:11:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 12:11:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:55331] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/F6-20751-F5E94405 for ; Mon, 03 Sep 2012 08:11:12 -0400 Received: from [192.168.1.102] (p5099f5c8.dip0.t-ipconnect.de [::ffff:80.153.245.200]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by milch.schokokeks.org with ESMTPSA; Mon, 03 Sep 2012 14:11:08 +0200 id 0000000000000023.0000000050449E5C.00003CA6 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) In-Reply-To: Date: Mon, 3 Sep 2012 14:11:06 +0200 Cc: Pierre Joye , Ryan McCue , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: CAArmra3vLz_NhnXPzWUwgKjRSk7HifXry39_77R4Fd6FiiTamQ@mail.gmail.com> To: Will Fitch X-Mailer: Apple Mail (2.1485) Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: lars@strojny.net (Lars Strojny) Hi Will, Am 03.09.2012 um 14:01 schrieb Will Fitch : > On Mon, Sep 3, 2012 at 7:57 AM, Pierre Joye = wrote: [...] > I actually feel a static function which tracks globally would best = serve > this case: >=20 > date_default_format_set('c') >=20 > This would prevent the need for setting it on a per instance basis - > similar to the way timezones can be set: >=20 > date_default_timezone_set('America/Chicago') Please let=92s not add another global setting. DateTime objects are = basically value objects. If you need to create specific flavors of them, = use a Factory. Otherwise we will end up with horrible incompatibilities between = libraries depending on different formats. cu, Lars=