Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8787 invoked from network); 2 Sep 2012 03:40:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2012 03:40:51 -0000 Authentication-Results: pb1.pair.com header.from=wfitch@meetme.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=wfitch@meetme.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain meetme.com designates 74.125.149.250 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.250 na3sys009aog132.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.250] ([74.125.149.250:53322] helo=na3sys009aog132.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/9F-17065-145D2405 for ; Sat, 01 Sep 2012 23:40:50 -0400 Received: from mail-vc0-f170.google.com ([209.85.220.170]) (using TLSv1) by na3sys009aob132.postini.com ([74.125.148.12]) with SMTP ID DSNKUELVPeOyZxiO56KoAEg+zDP1/CsE9AhJ@postini.com; Sat, 01 Sep 2012 20:40:50 PDT Received: by vcbgb30 with SMTP id gb30so4958646vcb.29 for ; Sat, 01 Sep 2012 20:40:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=pe6kAHcfzwREYGySxqY4M5jd2CjWNU/JH2ugH21RnTY=; b=R6IPmuK2nIea/149VUbFyhme2iokYbE8/ALmqp/LV1OODjDaEeS55+tzZxpL8mPsTT aZB+Ftj1tocBwGDsego6Q9ZF2Jt8qXRX9B+XJYfjqk/Ffo7mh0qxyUglL+Jz5kD/r3fC bIrHWAl3nl8W9oHRRqwFFAnzS14Ut53pnWQ0OpXgulb6GG/1lzEdV9PvIbruNHix/b3n 7+RoJ2G3LhMBzsmD6ZBmnjL9p8dMSkF1RFJZdTZABZMUlGeXosRDs7qwOhNl0YRsxwYq +PkJwSdMFutfwnmYmKgxD9AufNQAqd40XHoTKE/Gp7VyxlS0bQ7Bv5ZmO6RJ5Jyn5f88 hzmA== MIME-Version: 1.0 Received: by 10.58.79.178 with SMTP id k18mr9488632vex.3.1346557244636; Sat, 01 Sep 2012 20:40:44 -0700 (PDT) Received: by 10.58.132.161 with HTTP; Sat, 1 Sep 2012 20:40:44 -0700 (PDT) X-Originating-IP: [71.185.163.243] In-Reply-To: References: Date: Sat, 1 Sep 2012 23:40:44 -0400 Message-ID: To: Pierre Joye Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b5da23d3c7f2e04c8afca4d X-Gm-Message-State: ALoCoQlGp0soeuQaDYl8A4K9c1pwDQ8dPbOFs4N/u8Wvom50R6gTW6pGWgSMa3Ikq8y1rSLGKhv9 Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: wfitch@meetme.com (Will Fitch) --047d7b5da23d3c7f2e04c8afca4d Content-Type: text/plain; charset=ISO-8859-1 On Sat, Sep 1, 2012 at 6:36 AM, Pierre Joye wrote: > hi Will, > > On Sat, Sep 1, 2012 at 12:14 PM, 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. > > It would be better to name the format method setDefaultFormat instead > of setDefaultPattern, to be consistent with the rest of the API. > This makes sense. I'll update. > > (not saying I like the idea or not, only a 1st comment :) > > Cheers, > -- > Pierre > > @pierrejoye > --047d7b5da23d3c7f2e04c8afca4d--