Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62738 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67883 invoked from network); 3 Sep 2012 13:10:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 13:10:39 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:42915] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/79-20751-E4CA4405 for ; Mon, 03 Sep 2012 09:10:39 -0400 Received: by iamm10 with SMTP id m10so8702099iam.29 for ; Mon, 03 Sep 2012 06:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/EcedyUsuf9dXcu4d0dHk6DjNNrmFEqQGR779nS7hVY=; b=oySOkyxuAgSLUCULYlKDb0KTjUSkEXyjGexBTz9zeik5uHsMZrNuYD1Z4erArguNy1 EzKhHjCLBbLqp0KLFB85qbzi78QCpA9Db98S0OV/Xs+o3dd6ZKpfWjM+1B/rA7gjA2G5 83eyt1CMQjz0VffVDcqJOB+P6nAWrhYfzZZ7WilvkvCTjUFlqU+tQyvsuSeU8Wl1q9sF HnOwqHtxl3g9CthGasCp9Srhq8mL5+HUpHdXxsru69FYCrYRAi6pQPG/E8bn4OxAGM4R rYoBtKBdxNmnrnnBmlDZmE0iZUrv9yZ0V0AKs7+ARkZrF65rCnZWMst787y8O96YW+7u 9vTw== MIME-Version: 1.0 Received: by 10.50.36.169 with SMTP id r9mr10722025igj.19.1346677836491; Mon, 03 Sep 2012 06:10:36 -0700 (PDT) Received: by 10.64.60.40 with HTTP; Mon, 3 Sep 2012 06:10:36 -0700 (PDT) In-Reply-To: References: <50435ABE.4010308@ajf.me> <50436412.7010802@ajf.me> <5043C3E9.2010105@ajf.me> <5043C5AF.3060701@ajf.me> <5043C74C.8020400@ajf.me> <5043D8C0.3020802@lsces.co.uk> <5044715E.3050504@rotorised.com> Date: Mon, 3 Sep 2012 15:10:36 +0200 Message-ID: To: Lars Strojny Cc: Will Fitch , Ryan McCue , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: pierre.php@gmail.com (Pierre Joye) hi Lars, On Mon, Sep 3, 2012 at 2:09 PM, Lars Strojny wrote: > Ease debugging by allowing "echo $date;" instead of "echo $date->format(...);" Ooch. If that's the only goal, it makes no sense to add that. However I see many useful usages like passing date object to templates and the likes (while tpl system can implement it cleanly too, but it spares some code duplication all over the apps). Cheers, -- Pierre @pierrejoye