Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20985 invoked from network); 1 Sep 2012 10:28:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2012 10:28:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 64.22.89.133 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 64.22.89.133 oxmail.registrar-servers.com Received: from [64.22.89.133] ([64.22.89.133:53129] helo=oxmail.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/90-17065-C43E1405 for ; Sat, 01 Sep 2012 06:28:29 -0400 Received: from [192.168.0.200] (5ad3285b.bb.sky.com [90.211.40.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id A25F075803F; Sat, 1 Sep 2012 06:28:25 -0400 (EDT) Message-ID: <5041E327.9040104@ajf.me> Date: Sat, 01 Sep 2012 11:27:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Will Fitch CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: ajf@ajf.me (Andrew Faulds) On 01/09/12 11:14, Will Fitch wrote: > I would like to officially introduce an RFC with a patch to implement > __toString to DateTime. This is a commonly requested feature that goes > unanswered mostly because of the inability to agree on a default pattern. > > In short, the patch uses the ISO-8601 format as the default pattern. The > pattern may be changed via setDefaultPattern and date_default_pattern_set, > as explained in the RFC. > > The link to the RFC and patch are here: > https://wiki.php.net/rfc/datetime_tostring. > > While I know this isn't as interesting as many of the current proposals > going on, I'm hoping you can give this RFC a look. > > - Will > Oh, thank you Will! I saw the bug report suggesting it myself and was thinking of implementing it. I'm glad to see you thought the same way I did, and used the ISO-8601 format as the default. +1 from me. -- Andrew Faulds http://ajf.me/