Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62627 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19246 invoked from network); 1 Sep 2012 10:15:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2012 10:15:03 -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.75 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.75 na3sys009aog105.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.75] ([74.125.149.75:44988] helo=na3sys009aog105.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/40-17065-520E1405 for ; Sat, 01 Sep 2012 06:15:02 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]) (using TLSv1) by na3sys009aob105.postini.com ([74.125.148.12]) with SMTP ID DSNKUEHgHfNaGMNanAToxRBTsl+tc8l6aunY@postini.com; Sat, 01 Sep 2012 03:15:02 PDT Received: by obbwc18 with SMTP id wc18so7546830obb.29 for ; Sat, 01 Sep 2012 03:14:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:date:x-google-sender-auth :message-id:subject:from:to:content-type:x-gm-message-state; bh=TWScjRsI64pmNu/M8AELVBVmFw8LNhmYwGY+qAdpnuQ=; b=cU14jskKaFzLpU8lTZxqqNFFWxRppkLV+mFsFAw+WYVAGJOynvrougEkc0sxA1GgMk piZEH4+s0ZeYbZ0op5DjXI3ItF/Pt0TvB3InGllfwxBZiB3LZBVpcfJppUIV8+/yVaNq 6ZIDWcRPLfCRkhkRKfC5IcU/OW7ljXCRpz5XW+3IxHme/llMmBVPHK5UWoW5C8q7AqKW 7FvBqGGZxFoo3cxgO/fCBKHkIQeEbnSG05WDYiKvTIaLWUPK4tRTBIEYZZbKu4dbL9bB SogcFn1T6ClroZz8Jue0UPL14n2s3MuGTSzXPwUNBg+hPLHuGHZ23tLnTlaj9eef+EWe GcvQ== MIME-Version: 1.0 Received: by 10.182.154.70 with SMTP id vm6mr10257402obb.50.1346494483420; Sat, 01 Sep 2012 03:14:43 -0700 (PDT) Sender: wfitch@meetme.com Received: by 10.60.41.73 with HTTP; Sat, 1 Sep 2012 03:14:43 -0700 (PDT) X-Originating-IP: [71.185.163.243] Date: Sat, 1 Sep 2012 06:14:43 -0400 X-Google-Sender-Auth: jkrX6ysO4q03MuZoEi9SWgJqdhs Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d04479f0b6055ec04c8a12d79 X-Gm-Message-State: ALoCoQm6yb/I/yFvKtMpws2MgxkCIFraB8hPop2P4HaoyXmPIpYVUgvNJFi3Qy9dmb3HnGNOcJ40 Subject: RFC for Adding __toString to DateTime From: willfitch@php.net (Will Fitch) --f46d04479f0b6055ec04c8a12d79 Content-Type: text/plain; charset=ISO-8859-1 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 --f46d04479f0b6055ec04c8a12d79--