Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64217 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65888 invoked from network); 10 Dec 2012 12:20:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2012 12:20:42 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:40471] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/F0-60401-993D5C05 for ; Mon, 10 Dec 2012 07:20:41 -0500 Received: by mail-ie0-f175.google.com with SMTP id qd14so7818472ieb.6 for ; Mon, 10 Dec 2012 04:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GMD4weQwOKGSt7oj5QsRCx7izCrbUpd3KORKpPfv2Vw=; b=Cs7aljkicrq72aHfxS+BlUeRI027v1+Son2Ezo43L79hnaW+p8sUvdKUvuMeeysN3Q Qd4bdIBGgrLBvdz+VyHIT4P5XSjyLUNKRt39xE8ApylNQwr1J67o5RxpufsBh3D/cw5O 0Pm92elisuf18t+uf/OoRDMYLycoCTxAs+MfbTu5hELSJ1LgujcbfdBzNXTwEv6MuPq5 vg9vzAxbnVKE+kv6O/OutCHvrcDksoROtMXBwS05Ac5xSefenEjkG5HIzpRxZrCAZJV/ nRK40wBBQOU8jxp+U8cZ1ZQf8IMBV/ueX0U7nEgIKrr9ey7gobeonEtdOakSGVPeMblI XBSQ== Received: by 10.50.152.240 with SMTP id vb16mr6452441igb.45.1355142038728; Mon, 10 Dec 2012 04:20:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.136.81 with HTTP; Mon, 10 Dec 2012 04:20:18 -0800 (PST) In-Reply-To: <4ED7146272E04A47B986ED49E771E347BB362B68DE@Ikarus.ameusgmbh.intern> References: <4ED7146272E04A47B986ED49E771E347BB362B68DE@Ikarus.ameusgmbh.intern> Date: Mon, 10 Dec 2012 13:20:18 +0100 Message-ID: To: Christian Stoller Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f3ba01bd6b13904d07e9764 Subject: Re: [PHP-DEV] Improve DateTime Class From: ocramius@gmail.com (Marco Pivetta) --e89a8f3ba01bd6b13904d07e9764 Content-Type: text/plain; charset=UTF-8 Heya, To me, an interval is well represented by DateInterval, while the DateTime::modify() method looks more like a shortcut to it. Do you really need the additional functionality? Shouldn't it be easier to $date->add(new DateInterval('P15D')); ? It is also a better representation of an interval to me... Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --e89a8f3ba01bd6b13904d07e9764--